Пример #1
0
        public async Task GetGroupByName_Test()
        {
            // Arrange
            var teamsService = new TeamsService(this.dbContext);

            this.dbContext.Groups.Add(new Group {
                Name = "B"
            });
            this.dbContext.Groups.Add(new Group {
                Name = "C"
            });
            await this.dbContext.SaveChangesAsync();

            // Act
            var group = teamsService.GetGroupByName("B");

            // Assert
            Assert.AreNotEqual(null, group);
        }