Пример #1
0
        public async Task CreateGroupCorrectlyInsertsGroup()
        {
            GroupForCreation groupForCreation = new GroupForCreation
            {
                Name = Group1
            };

            Api.Domain.Group group = await _groupDao.CreateGroup(groupForCreation);

            List <Api.Domain.Group> groups = TestHelpers.GetAllGroups(ConnectionString);

            Assert.That(groups.Count, Is.EqualTo(1));
            Assert.That(groups[0].Id, Is.EqualTo(group.Id));
            Assert.That(groups[0].Name, Is.EqualTo(group.Name));
        }