protected InMemoryDbContextBase(DbContextOptions <SixBDigitalContext> options = null) { if (options == null) { options = new DbContextOptionsBuilder <SixBDigitalContext>() .UseSqlite(CreateInMemoryDatabase()).Options; _connection = RelationalOptionsExtension.Extract(options).Connection; } Context = new SixBDigitalContext(options); Context.Database.EnsureDeleted(); Context.Database.EnsureCreated(); }
public DeleteBookingCommandHandler(SixBDigitalContext context) { _context = context; }
public AdminLogInQueryHandler(SixBDigitalContext context) { _context = context; }
public CreateEntityCommandHandler(SixBDigitalContext context, IEnumerable <IBuilder> builders) { _context = context; _builder = builders.OfType <IBuilder <TCommand, TEntity> >().Single(); }
public EditBookingCommandHandler(SixBDigitalContext context) { _context = context; }
public GetBookingQueryHandler(SixBDigitalContext context) { _context = context; }
public ToggleBookingApprovedCommandHandler(SixBDigitalContext context) { _context = context; }