public void AddToDirectory_ShouldGetCorrectBool() { CarInContent content = new CarInContent(); CarInRepository repo = new CarInRepository(); bool addResult = repo.AddContentToDirectory(content); Assert.IsTrue(addResult); }
public void GetDirectory_ShouldReturnCorrectList() { CarInContent testContent = new CarInContent(); CarInRepository repo = new CarInRepository(); repo.AddContentToDirectory(testContent); List <CarInContent> testList = repo.GetContents(); bool directoryHasContent = testList.Contains(testContent); Assert.IsTrue(directoryHasContent); }
public void GetByLastName_ShouldReturnCorrectLastName() { CarInContent searchResult = _repo.GetContentByLastName("Singh"); Assert.AreEqual(_content, searchResult); }
public void Arrange() { _repo = new CarInRepository(); _content = new CarInContent(); _repo.AddContentToDirectory(_content); }