Exemple #1
0
        public Mock()
        {
            _connection = new SqliteConnection("Filename=:memory:");
            _connection.Open();

            _db = new AsyncInnDBContext(
                new DbContextOptionsBuilder <AsyncInnDBContext>()
                .UseSqlite(_connection)
                .Options);

            _db.Database.EnsureCreated();
        }
Exemple #2
0
 public RoomsController(AsyncInnDBContext context)
 {
     _context = context;
 }
Exemple #3
0
 public HotelService(AsyncInnDBContext context)
 {
     _context = context;
 }
Exemple #4
0
 public RoomAmenitiesController(AsyncInnDBContext context)
 {
     _context = context;
 }
 /// <summary>
 /// sets context to DB
 /// </summary>
 /// <param name="context"></param>
 public RoomRepository(AsyncInnDBContext context)
 {
     _context = context;
 }
Exemple #6
0
 /// <summary>
 /// sets context to database
 /// </summary>
 /// <param name="context"></param>
 public HotelRepository(AsyncInnDBContext context)
 {
     _context = context;
 }
Exemple #7
0
 public RoomService(AsyncInnDBContext context)
 {
     _context = context;
 }
Exemple #8
0
 public AmenityPackageService(AsyncInnDBContext context)
 {
     _context = context;
 }
Exemple #9
0
 public LocationService(AsyncInnDBContext context)
 {
     _context = context;
 }
Exemple #10
0
 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;
 }