public void RateMovieRatesThrowsException() { MockedDummySpecificMovieService _mockedDummyService = new MockedDummySpecificMovieService(); MockedDummySpecificMovieView _mockedDummyView = new MockedDummySpecificMovieView(); ISpecificMovieInfoPresenter _presenter = new SpecificMovieInfoPresenter(_mockedDummyView, _mockedDummyService._specificMovieService); _mockedDummyService.error = true; _presenter.RateMovie(1); Assert.AreNotEqual(4, _mockedDummyService.rates.Count); }
public void RateMovieRates() { MockedDummySpecificMovieService _mockedDummyService = new MockedDummySpecificMovieService(); MockedDummySpecificMovieView _mockedDummyView = new MockedDummySpecificMovieView(); ISpecificMovieInfoPresenter _presenter = new SpecificMovieInfoPresenter(_mockedDummyView, _mockedDummyService._specificMovieService); _presenter.RateMovie(1); Assert.AreEqual(4, _mockedDummyService.rates.Count); }