private EventStorePatientEndSchedulingService SetupEventEndService()
        {
            EventDataSeeder dataSeeder = new EventDataSeeder();
            DbContextOptionsBuilder <EventSourcingDbContext> builder = new DbContextOptionsBuilder <EventSourcingDbContext>();;
            DbContextOptions <EventSourcingDbContext>        options;
            EventSourcingDbContext context;

            builder.UseInMemoryDatabase(Guid.NewGuid().ToString());
            options = builder.Options;
            context = new EventSourcingDbContext(options);

            dataSeeder.SeedAll(context);

            var eventRepo = new DomainEventRepository <PatientEndSchedulingEvent>(context);

            return(new EventStorePatientEndSchedulingService(eventRepo));
        }
        public MapEventsTests()
        {
            EventDataSeeder dataSeeder = new EventDataSeeder();
            DbContextOptionsBuilder <EventSourcingDbContext> builder = new DbContextOptionsBuilder <EventSourcingDbContext>();;
            DbContextOptions <EventSourcingDbContext>        options;
            EventSourcingDbContext context;

            builder.UseInMemoryDatabase(Guid.NewGuid().ToString());
            options = builder.Options;
            context = new EventSourcingDbContext(options);

            dataSeeder.SeedAll(context);

            var buildingEventRepo = new DomainEventRepository <BuildingSelectionEvent>(context);

            buildingEventService = new BuildingSelectionService(buildingEventRepo);
            var floorChangeEventRepo = new DomainEventRepository <FloorChangeEvent>(context);

            floorChangeEventService = new FloorChangeService(floorChangeEventRepo);
            var roomEventRepo = new DomainEventRepository <RoomSelectionEvent>(context);

            roomEventService = new RoomSelectionService(roomEventRepo);
        }