示例#1
0
        public bool IsThemeNameUnique(string name, Guid themeId = new Guid())
        {
            var theme = _themeRepository.GetByName(name);

            return(IsThemeUnique(theme, themeId));
        }
示例#2
0
        public void Should_return_theme_by_name()
        {
            var actual = _sut.GetByName("Name 1");

            Assert.NotNull(actual);
        }