public void CreateDvdPerformsExpectedWork() { IDvdRepository repository = new InMemoryRepository(); List <Dvd> dvds = new List <Dvd>(); Dvd dvd = new Dvd(); repository.CreateDvd(dvd); Assert.That(dvds.Contains(dvd)); }
public void DeleteDvdWorks() { //mockRepo = new Mock<InMemoryRepository>(); //IDvdRepository repository = new InMemoryRepository(); Dvd dvd = new Dvd { Id = 5, Director = "MovieMachine6", Notes = "too much acting", Rating = "R", ReleaseYear = 2005, Title = "Batman 15 Return of batman" }; sut.CreateDvd(dvd); sut.DeleteDvd(5); List <Dvd> dvds = sut.GetAllDvds(); Assert.IsFalse(dvds.Contains(dvd)); }