public void InitializeCorrectly_WhenParametersAreValid() { var mockedView = new Mock <IGameInfoView>(); var mockedGamesService = new Mock <IGamesService>(); var mockedUsersService = new Mock <IUsersService>(); var mockedCommentsService = new Mock <ICommentsService>(); var presenter = new GameDetailsPresenter(mockedView.Object, mockedGamesService.Object, mockedUsersService.Object, mockedCommentsService.Object); Assert.That(presenter, Is.Not.Null); }
public void CreateInstanceOfPresenter() { var mockedView = new Mock <IGameInfoView>(); var mockedGamesService = new Mock <IGamesService>(); var mockedUsersService = new Mock <IUsersService>(); var mockedCommentsService = new Mock <ICommentsService>(); var presenter = new GameDetailsPresenter(mockedView.Object, mockedGamesService.Object, mockedUsersService.Object, mockedCommentsService.Object); Assert.That(presenter, Is.InstanceOf <Presenter <IGameInfoView> >()); }