Example #1
0
        public void AddPolicyDocument(PolicyDocument policyDocument, string folderPath)
        {
            var repo = new PolicyDocumentRepository();

            repo.AddNewPolicyDocument(policyDocument, folderPath);
            List <Category> categories = repo.GetAllPolicyDocCategories(folderPath);
        }
Example #2
0
      public void GetAllCategoriesTest()
      {
          var repo       = new PolicyDocumentRepository();
          var folderPath =
              @"C:\Users\Apprentice\Desktop\GitHub\KileyDowling\SGCorpHRV2\SGCorpHR\SGCorpHR.TEST\PolicyDocuments";
          var allCategories = repo.GetAllPolicyDocCategories(folderPath);

          Assert.AreEqual("DressCode", allCategories.First());
      }
Example #3
0
        public Response <List <Category> > GetAllCategories(string folderPath)
        {
            var repo = new PolicyDocumentRepository();
            Response <List <Category> > response      = new Response <List <Category> >();
            List <Category>             allCategories = repo.GetAllPolicyDocCategories(folderPath);

            response.Data    = allCategories;
            response.Success = true;

            return(response);
        }