Esempio n. 1
0
        public void Invalid_group_name()
        {
            var name = "invalid";
            var query = new GroupByName(connectionString);
            query.Exists(name).Should().Be.False();

            var result = query.Get(name);
            Assert.IsNull(result);
        }
Esempio n. 2
0
        public void Correct_group_name()
        {
            var query = new GroupByName(connectionString);
            query.Exists(group.Name).Should().Be.True();

            var result = query.Get(group.Name);
            Assert.IsNotNull(result);
            Assert.AreEqual(group.Id, result.Id);
            Assert.AreEqual(group.Name, result.Name);
        }