Exemple #1
0
 /// <summary>
 /// Default constructor that sets the database to be an instance of BookingSystemDb
 /// </summary>
 public CompanyController()
 {
     _db = new BookingSystemDb();
 }
Exemple #2
0
 /// <summary>
 /// Constructor used when unit testing to pass a mock of the BookingSystemDb
 /// </summary>
 /// <param name="db"></param>
 public CompanyController(BookingSystemDb db)
 {
     this._db = db;
 }
Exemple #3
0
 /// <summary>
 /// Default constructor that sets the database to be an instance of BookingSystemDb
 /// </summary>
 public TableController()
 {
     _db = new BookingSystemDb();
 }
Exemple #4
0
 /// <summary>
 /// Constructor used when unit testing to pass a mock of the BookingSystemDb
 /// </summary>
 /// <param name="db"></param>
 public TableController(BookingSystemDb db)
 {
     this._db = db;
 }
 /// <summary>
 /// Default constructor that sets the database to be an instance of BookingSystemDb
 /// </summary>
 public CustomerController()
 {
     _db = new BookingSystemDb();
 }
 /// <summary>
 /// Constructor used when unit testing to pass a mock of the BookingSystemDb
 /// </summary>
 /// <param name="db"></param>
 public MenuController(BookingSystemDb db)
 {
     this._db = db;
 }
 /// <summary>
 /// Default constructor that sets the database to be an instance of BookingSystemDb
 /// </summary>
 public PaymentController()
 {
     _db = new BookingSystemDb();
 }
Exemple #8
0
 /// <summary>
 /// Default constructor that sets the database to be an instance of BookingSystemDb
 /// </summary>
 public RestaurantController()
 {
     _db = new BookingSystemDb();
 }
 /// <summary>
 /// Default constructor that sets the database to be an instance of BookingSystemDb
 /// </summary>
 public DietInfoController()
 {
     _db = new BookingSystemDb();
 }
 /// <summary>
 /// Constructor used when unit testing to pass a mock of the BookingSystemDb
 /// </summary>
 /// <param name="db"></param>
 public DietInfoController(BookingSystemDb db)
 {
     this._db = db;
 }
 /// <summary>
 /// Constructor used when unit testing to pass a mock of the BookingSystemDb
 /// </summary>
 /// <param name="db"></param>
 public ImageController(BookingSystemDb db)
 {
     this._db = db;
 }
 /// <summary>
 /// Default constructor that sets the database to be an instance of BookingSystemDb
 /// </summary>
 public ImageController()
 {
     _db = new BookingSystemDb();
 }
 /// <summary>
 /// Constructor used when unit testing to pass a mock of the BookingSystemDb
 /// </summary>
 /// <param name="db"></param>
 public CustomerController(BookingSystemDb db)
 {
     this._db = db;
 }
 /// <summary>
 /// Default constructor that sets the database to be an instance of BookingSystemDb
 /// </summary>
 public CategoryController()
 {
     _db = new BookingSystemDb();
 }
 /// <summary>
 /// Constructor used when unit testing to pass a mock of the BookingSystemDb
 /// </summary>
 /// <param name="db"></param>
 public PaymentController(BookingSystemDb db)
 {
     isTesting = true;
     _db       = db;
 }
 /// <summary>
 /// Constructor used when unit testing to pass a mock of the BookingSystemDb
 /// </summary>
 /// <param name="db"></param>
 public CategoryController(BookingSystemDb db)
 {
     this._db = db;
 }
 /// <summary>
 /// Default constructor that sets the database to be an instance of BookingSystemDb
 /// </summary>
 public MenuController()
 {
     _db = new BookingSystemDb();
 }
Exemple #18
0
 /// <summary>
 /// Constructor used when unit testing to pass a mock of the BookingSystemDb
 /// </summary>
 /// <param name="db"></param>
 public RestaurantController(BookingSystemDb db)
 {
     this._db = db;
 }
Exemple #19
0
 /// <summary>
 /// Constructor used when unit testing to pass a mock of the BookingSystemDb
 /// </summary>
 /// <param name="db"></param>
 public BookingController(BookingSystemDb db)
 {
     isTesting = true;
     this._db  = db;
 }