public void When执行BindImei函数() { var db = new DormManageMvcContext(); var userInfoDao = new UserInfoDao(db); var scope = new TransactionScope(); _result = userInfoDao.BindImei(_userid, _imei); scope.Dispose(); }
public DormExamBusiness(DormManageMvcContext context) { Db = context; UserInfoDao = new UserInfoDao(Db); DormExamTypeDao = new DormExamTypeDao(Db); DormIrregularityDao = new DormIrregularityDao(Db); DormInfoDao = new DormInfoDao(Db); _week = DateTimeHelper.GetDistanceOfNowReturnWeek(GetStartTime()).ToString(); _schoolYear = DateTimeHelper.GetSchoolYear(DateTime.Now); }
public void When调用ModifyPassword_Ashx() { Console.WriteLine(_url); _driver.Navigate().GoToUrl(_url); var db = new DormManageMvcContext(); var userInfoDao = new UserInfoDao(db); userInfoDao.ModifyPassword(4, "234", "123"); }
public void When调用BindIMEI_ashx() { Console.WriteLine(_url); _driver.Navigate().GoToUrl(_url); var db = new DormManageMvcContext(); var userInfoDao = new UserInfoDao(db); userInfoDao.UnBindImei(4); }