コード例 #1
0
        public void TestFixtureSetUp()
        {
            // this is a shim to make sure that the Test.Domain.Ordering.Api assembly is loaded into the AppDomain, otherwise Web API won't discover the controller type
            var controller = new OrderApiController(new InMemoryEventSourcedRepository <Order>());

            TestSetUp.EnsureEventStoreIsInitialized();
        }
コード例 #2
0
        public void SetUp()
        {
            // this is a shim to make sure that the Test.Domain.Ordering.Api assembly is loaded into the AppDomain, otherwise Web API won't discover the controller type
            var controller = new OrderApiController(new InMemoryEventSourcedRepository <Order>());

            TestSetUp.EnsureEventStoreIsInitialized();
            Command <Order> .AuthorizeDefault = (order, command) => true;
        }
コード例 #3
0
 public void TestFixtureSetUp()
 {
     TestSetUp.EnsureEventStoreIsInitialized();
 }