Пример #1
0
        public PresenterProfileCell(IProfileCellView view, IInteractorProfileCell interactor, IProfileCellStylesHolder themes, IProfileCellLocale locale)
        {
            _view       = view ?? throw new ArgumentNullException("View cannot be a null!");
            _interactor = interactor ?? throw new ArgumentNullException("Interactor cannot be a null!");

            _themeHolder = themes;
            _locale      = locale;
        }
Пример #2
0
 public void ConstructorPositiveTest(IProfileCellView view, IInteractorProfileCell interactor, IProfileCellStylesHolder themes, IProfileCellLocale locale, string testName)
 {
     var presenter = new PresenterProfileCell(view, interactor, themes, locale);
 }
Пример #3
0
 public void ConstructorNegativeTest(IProfileCellView view, IInteractorProfileCell interactor, IProfileCellStylesHolder themes, IProfileCellLocale locale, string testName)
 {
     Assert.Throws(typeof(ArgumentNullException), () =>
     {
         var presenter = new PresenterProfileCell(view, interactor, themes, locale);
     });
 }