protected override void Dispose(bool disposing)
 {
     if (disposing)
     {
         db.Dispose();
         db = null;
     }
     base.Dispose(disposing);
 }
 public DiscussionController(IVMSContext context)
 {
     db = context;
 }
 public DiscussionController()
 {
     db = new VMSContext();
 }
Exemple #4
0
 public TeacherController(IVMSContext context)
 {
     db = context;
 }
Exemple #5
0
 public TeacherController()
 {
     db = new VMSContext();
 }
 public void InitTest()
 {
     _context = GetFakeContext();
     _controller = new TeacherController(_context);
 }