public void WasAdded_ShouldReturnTrue() { Claim testClaim = new Claim(); bool testHold = _repo.AddContentToDirectory(testClaim); Assert.IsTrue(testHold); }
public void Run() { // SeedContent function to fill in the repo with dummy data Claim temp = new Claim(4, "Car", "description", "$500.00", "4/25/2014", "5/25/2015", true); _claimRepo.AddContentToDirectory(temp); RunMenu(); }
public void GetAllClaims_ShouldReturnListOfClaims() { Claim content = new Claim(); KomodoClaimsRepo repo = new KomodoClaimsRepo(); repo.AddContentToDirectory(content); List <Claim> fullRepo = repo.GetAllClaims(); bool directoryHasContents = fullRepo.Contains(content); Assert.IsTrue(directoryHasContents); }