public MapController( IRoomSelectionService roomSelectionService, IBuildingSelectionService buildingSelectionService, IFloorChangeService floorChangeService) { _roomSelectionService = roomSelectionService; _buildingSelectionService = buildingSelectionService; _floorChangeService = floorChangeService; }
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); }