예제 #1
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);
     });
 }
예제 #2
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;
        }
예제 #3
0
 public ProfileViewHolder(View view) : base(view)
 {
     _profileCellView = view.FindViewById <ProfileCellView>(Resource.Id.moreOptions_profileCell_profileCellView);
 }
예제 #4
0
 public void ConstructorPositiveTest(IProfileCellView view, IInteractorProfileCell interactor, IProfileCellStylesHolder themes, IProfileCellLocale locale, string testName)
 {
     var presenter = new PresenterProfileCell(view, interactor, themes, locale);
 }