public Mock() { _connection = new SqliteConnection("Filename=:memory:"); _connection.Open(); _db = new AsyncInnDBContext( new DbContextOptionsBuilder <AsyncInnDBContext>() .UseSqlite(_connection) .Options); _db.Database.EnsureCreated(); }
public RoomsController(AsyncInnDBContext context) { _context = context; }
public HotelService(AsyncInnDBContext context) { _context = context; }
public RoomAmenitiesController(AsyncInnDBContext context) { _context = context; }
/// <summary> /// sets context to DB /// </summary> /// <param name="context"></param> public RoomRepository(AsyncInnDBContext context) { _context = context; }
/// <summary> /// sets context to database /// </summary> /// <param name="context"></param> public HotelRepository(AsyncInnDBContext context) { _context = context; }
public RoomService(AsyncInnDBContext context) { _context = context; }
public AmenityPackageService(AsyncInnDBContext context) { _context = context; }
public LocationService(AsyncInnDBContext context) { _context = context; }
public AmenitiesServices(AsyncInnDBContext context) { _context = context; }
/// <summary> /// sets context to the database /// </summary> /// <param name="context"></param> public AmenityRepository(AsyncInnDBContext context) { _context = context; }
public HotelsController(AsyncInnDBContext context) { _context = context; }
public RoomLocationsController(AsyncInnDBContext context) { _context = context; }