Exemplo n.º 1
0
        public void Exists_NotExistingTopicAlias_ReturnsFalse()
        {
            var testDatabaseContext = DbContextFactory.Create();

            var service = new TopicService(testDatabaseContext);
            var result  = service.Exists("bad-topic-alias");

            Assert.False(result);
        }
Exemplo n.º 2
0
        public void Exists_ExistingTopicAlias_ReturnsTrue(string topicAlias)
        {
            var testDatabaseContext = DbContextFactory.Create();

            var service = new TopicService(testDatabaseContext);
            var result  = service.Exists(topicAlias);

            Assert.True(result);
        }