public void UpdateTest()
        {
            DbContextHelper.Init(typeof(CourseDbContext), GlobalSettings.DATABASE.ConnectionString, 8);

            DispatchManageRepository repo = new DispatchManageRepository();
            Assert.AreEqual(true, repo.Update(2, "2", DateTime.Now, 20, 3, 1, true));
        }
        public void DestroyTest()
        {
            DbContextHelper.Init(typeof(CourseDbContext), GlobalSettings.DATABASE.ConnectionString, 8);

            DispatchManageRepository repo = new DispatchManageRepository();
            Assert.AreEqual(true, repo.Destroy(3));
        }
        public void GetAllTest()
        {
            DbContextHelper.Init(typeof(CourseDbContext), GlobalSettings.DATABASE.ConnectionString, 8);

            DispatchManageRepository repo = new DispatchManageRepository();
            Assert.AreEqual(2, repo.GetAll().Count);
        }
 public DispatchManageController()
 {
     view = new GenericView();
     dispatchMgrRepo = new DispatchManageRepository();
 }