public async Task GetAllGroups() { await using var context = new WebApiContext(_seeder.DbContextOptions); var controller = new GroupsController(context, _mapper); var groups = await controller.GetUserGroups(); groups.Value.Count().ShouldBe(2); groups.Value.Any(g => g.Code == UserGroupCode.Admin).ShouldBe(true); groups.Value.Any(g => g.Code == UserGroupCode.User).ShouldBe(true); }