Esempio n. 1
0
        public void SetTheme_PositiveTests(IThemeKeyStringsTools theme, string testName)
        {
            _viewMock.Setup(s => s.SetCollectionViewTheme(theme.DividingLineColorKey, theme.DividingLineSizeKey, theme.DividingLineTypeKey));
            _viewMock.Setup(s => s.SetSearchTheme(theme.SearchBacgroundColorKey, theme.SearchTextColorKey, theme.SearchTextSizeKey, theme.SearchTextFontStyleKey));

            _presenter.SetTheme(theme);

            _viewMock.Verify(s => s.SetCollectionViewTheme(theme.DividingLineColorKey, theme.DividingLineSizeKey, theme.DividingLineTypeKey));
            _viewMock.Verify(s => s.SetSearchTheme(theme.SearchBacgroundColorKey, theme.SearchTextColorKey, theme.SearchTextSizeKey, theme.SearchTextFontStyleKey));
        }
Esempio n. 2
0
        public void SetTheme(IThemeKeyStringsTools theme)
        {
            if (theme == null)
            {
                return;
            }

            _view.SetSearchTheme(theme.SearchBacgroundColorKey, theme.SearchTextColorKey, theme.SearchTextSizeKey, theme.SearchTextFontStyleKey);
            _view.SetCollectionViewTheme(theme.DividingLineColorKey, theme.DividingLineSizeKey, theme.DividingLineTypeKey);
        }