Пример #1
0
 protected override void Dispose(bool disposing)
 {
     if (disposing)
     {
         db.Dispose();
         db = null;
     }
     base.Dispose(disposing);
 }
Пример #2
0
 public DiscussionController(IVMSContext context)
 {
     db = context;
 }
Пример #3
0
 public DiscussionController()
 {
     db = new VMSContext();
 }
Пример #4
0
 public TeacherController(IVMSContext context)
 {
     db = context;
 }
Пример #5
0
 public TeacherController()
 {
     db = new VMSContext();
 }
Пример #6
0
 public void InitTest()
 {
     _context = GetFakeContext();
     _controller = new TeacherController(_context);
 }