This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var context = new CrusherContext(); | |
var source = new FileSource(new FileInfo("your js file")); | |
IEngine engine = context.GetDefaultEngineFor(source); | |
ICrushResult result = engine.TransformSource(source); | |
//stream back result.Result |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class TestRunner | |
{ | |
private static readonly ILog log = LogManager.GetLogger(typeof (TestRunner)); | |
public static void Main() | |
{ | |
Action foo = () => | |
{ | |
const string ID = "gsp"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
namespace ConsoleApplication3 | |
{ | |
class Program | |
{ | |
static void Main() | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
namespace ConsoleApplication3 | |
{ | |
internal class Program | |
{ | |
private static void Main() | |
{ | |
var chris = new Person {name = "Chris", age = 36}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Order : AggregateRoot | |
{ | |
private readonly List<OrderItem> orderItems = new List<OrderItem>(); | |
public void UpdateOrderItem(Guid orderItemId, int quantity) | |
{ | |
var orderItem = orderItems.Where(q => q.EntityId == | |
orderItemId).FirstOrDefault(); | |
if (orderItem == null) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.IO; | |
using System.Linq; | |
using System.Reflection; | |
namespace ConsoleApplication1 | |
{ | |
internal class Program | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using Lokad.Cqrs.Build.Client; | |
namespace Lokad.Cqrs.Extensions.Build | |
{ | |
public static class ExtendCqrsClientBuilder | |
{ | |
public static CqrsClientBuilder AddSynchronousMessageSender(this CqrsClientBuilder builder) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static class ExtendImmutableEnvelope | |
{ | |
public static Guid GetGuid(this ImmutableEnvelope envelope, string key) | |
{ | |
return Get(envelope, key, s => | |
{ | |
Guid result; | |
return Guid.TryParse(s, out result) == false ? Guid.Empty : result; | |
}); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Program | |
{ | |
private static void Main() | |
{ | |
var instance = new SomeClass | |
{ | |
SomePropertyWithAttribute = "I have an attribute", | |
SomeProperty = "I don't have an attribute" | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Reflection; | |
using System.Runtime.Serialization; | |
using GuessWho; | |
using NUnit.Framework; |
OlderNewer