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(); }
public TeacherController(IVMSContext context) { db = context; }
public TeacherController() { db = new VMSContext(); }
public void InitTest() { _context = GetFakeContext(); _controller = new TeacherController(_context); }