Example #1
0
 public void Setup()
 {
     Db = new UmsDb();
 }
Example #2
0
 public void TearDown()
 {
     Db = null;
 }
Example #3
0
 public void Tea()
 {
     Db = null;
 }
 public StudentsController(IUmsDb db)
 {
     Db = db;
 }
Example #5
0
 public TokenController(IUmsDb context)
 {
     Context = context;
 }
Example #6
0
 public AdminController(IUmsDb db)
 {
     Db = db;        //default db: admin count 1
                     //mocked db: admin count as you set
 }
Example #7
0
 public AdminController()
 {
     Db = new UmsDb();
     Db.Admins = new List<Admin>();  // admin count 0
 }