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

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

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