コード例 #1
0
ファイル: ThemeRules.cs プロジェクト: leigh-pointer/Weapsy
        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);
        }