public void AddPolicyDocument(PolicyDocument policyDocument, string folderPath) { var repo = new PolicyDocumentRepository(); repo.AddNewPolicyDocument(policyDocument, folderPath); List <Category> categories = repo.GetAllPolicyDocCategories(folderPath); }
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()); }
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); }