public ProblemDAOTests() { DALUtils util = new DALUtils(); util.LoadCollections(); ProblemDAO dao = new ProblemDAO(); Problem prob = dao.GetByProblemDescription("Device Not Plugged In"); pid = prob.GetIdAsString(); }
public DepartmentDAOTests() { DALUtils util = new DALUtils(); util.LoadCollections(); DepartmentDAO dao = new DepartmentDAO(); Department dep = dao.GetByDepartmentName("Administration"); did = dep.GetIdAsString(); }
public bool LoadCollections() { bool createOk = false; try { DALUtils dalUtil = new DALUtils(); createOk = dalUtil.LoadCollections(); } catch (Exception ex) { ErrorRoutine(ex, "ViewModelUtils", "LoadCollections"); } return(createOk); }
public void CreateCollectionsShouldReturnTrue() { DALUtils util = new DALUtils(); Assert.IsTrue(util.LoadCollections()); }