public void Find_By_Id() { var underTest = new ReviewRepository(); var result = underTest.FindById(1); Assert.Equal(1, result.Id); Assert.Equal("Nike", result.title); }
public void FindById_Returns_Correct_Review() { var underTest = new ReviewRepository(); var result = underTest.FindById(1); Assert.Equal(1, result.ID); Assert.Equal("Venom", result.Title); }
public void FindById_Returns_Correct_Review() { var underTest = new ReviewRepository(); var result = underTest.FindById(2); Assert.Equal(2, result.Id); //Assert.Equal("Moana", result.Name); }
public void FindById_Returns_Correct_Review() { var underTest = new ReviewRepository(); var result = underTest.FindById(1); Assert.Equal(1, result.Id); Assert.Equal("Mortarion", result.Name); }
public void FindById_Returns_Correct_Castle() { var sut = new ReviewRepository(); var result = sut.FindById(1); Assert.Equal(1, result.ID); Assert.Equal("Burg Eltz", result.Title); }
public Review GetDetail(int id) { return(repository.FindById(id)); }