public static void Main() { var fcn = new FooServiceEntry(); fcn.Run(new Request { Key1 = "val1" }); }
public void Execute_Writes_Request_And_Returns_Success() { // arrange var request = new Request(); var fooServiceEntry = new FooServiceEntry(); // act var result = fooServiceEntry.Run(request); // assert var writer = (LocalRequestWriter)ServiceProvider <FooService> .Container.Resolve <IRequestWriter>(); Assert.Equal(1, writer.WriteCount); Assert.Equal("Success", result.Message); }