public PresenterTools(IViewTools view, IInteractorTools interactor, IRouterTools router, IToolsStylesHolder stylesHolder) { _interactor = interactor ?? throw new ArgumentNullException("The interactor can't be a null"); _router = router ?? throw new ArgumentNullException("The router can't be a null"); _view = view ?? throw new ArgumentNullException("The view can't be a null"); _stylesHolder = stylesHolder; _interactor.Presenter = this; _view.Presenter = this; }
public void PresetnterConstructor_NegativeTest(IViewTools view, IInteractorTools interacotor, IRouterTools router) { Assert.Throws <ArgumentNullException>(() => new PresenterTools(view, interacotor, router, _stylesHolderMock.Object)); }