public void CheckIfUserRatedPaseses() { MockedDummySpecificMovieRepository _mockedDummySpecificMovieRepository = new MockedDummySpecificMovieRepository(); ISpecificMovieInfoService _specificMovieInfoService = new SpecificMovieInfoService(_mockedDummySpecificMovieRepository._specificMovieInfoRepository); Assert.AreEqual(true, _specificMovieInfoService.CheckIfUserRated(1)); }
public void CheckIfUserRatedThrowsException() { MockedDummySpecificMovieRepository _mockedDummySpecificMovieRepository = new MockedDummySpecificMovieRepository(); ISpecificMovieInfoService _specificMovieInfoService = new SpecificMovieInfoService(_mockedDummySpecificMovieRepository._specificMovieInfoRepository); Assert.Throws <SpecificMovieException>(() => _specificMovieInfoService.CheckIfUserRated(0)); }