Exemple #1
0
        public ProblemDAOTests()
        {
            DALUtils util = new DALUtils();

            util.LoadCollections();

            ProblemDAO dao  = new ProblemDAO();
            Problem    prob = dao.GetByProblemDescription("Device Not Plugged In");

            pid = prob.GetIdAsString();
        }
Exemple #2
0
        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);
        }
Exemple #4
0
        public void CreateCollectionsShouldReturnTrue()
        {
            DALUtils util = new DALUtils();

            Assert.IsTrue(util.LoadCollections());
        }