Example #1
0
        protected override void Given()
        {
            var eventProcessorCache = PreProcessorHelper.CreateEventProcessorCache();

            _testClient = new DomainRepository(new AggregateRootFactory(eventProcessorCache, new ApprovedEntitiesCache())).CreateNew <TestClient>();
            _testClient.ClientMoves(new Address("street", "number", "postalCode", "city"));
        }
        protected override void Given()
        {
            var approvedEntitiesCache = new ApprovedEntitiesCache();
            var eventProcessorCache   = PreProcessorHelper.CreateEventProcessorCache();

            _testClient1 = new DomainRepository(new AggregateRootFactory(eventProcessorCache, approvedEntitiesCache)).CreateNew <TestClient>();
            _testClient2 = new DomainRepository(new AggregateRootFactory(eventProcessorCache, approvedEntitiesCache)).CreateNew <TestClient>();
        }