Exemplo n.º 1
0
 public void SetUp()
 {
     _factory = new InMemorySqlLiteContextFactory <TContext>(options => Activator.CreateInstance(typeof(TContext), options) as TContext);
     _context = _factory.CreateContext(true);
     _publish = Substitute.For <IPublishEndpoint>();
     _authorizationService = Substitute.For <IAuthorizationService>();
     _eventService         = EventServiceFactory.CreateEventService(_context, _publish);
 }
        public void SetUp()
        {
            var content = _factory.CreateContext(true);

            _publishEndpoint = Substitute.For <IPublishEndpoint>();
            var eventService = EventServiceFactory.CreateEventService(content, _publishEndpoint);

            _consumer = new VerifyChangedTimeslotEventConsumer(content, eventService);
            _harness.Start().Wait();
        }
Exemplo n.º 3
0
        public void SetUp()
        {
            var content = _factory.CreateContext(true);

            _publishEndpoint = Substitute.For <IPublishEndpoint>();
            var eventService = EventServiceFactory.CreateEventService(content, _publishEndpoint);

            _consumer = new ClubSubscriptionCreatedEventConsumer(content);
            _harness.Start().Wait();
        }
Exemplo n.º 4
0
        public void SetUp()
        {
            var content = _factory.CreateContext(true);

            _publishEndpoint = Substitute.For <IPublishEndpoint>();
            var eventService = EventServiceFactory.CreateEventService(content, _publishEndpoint);

            _consumer = new TimeslotReservationFailedEventConsumer(content, CreateMapper(), eventService);
            _harness.Start().Wait();
        }