public async Task AddGroup_Test() { // Arrange var teamsService = new TeamsService(this.dbContext); // Act await teamsService.CreateGroup(new Group { Name = "A" }); var groups = this.dbContext.Groups; // Assert Assert.AreEqual(1, groups.Count()); }