public void GetGroupDelegates_returns_expected_delegates() { // Given var expectedFirstGroupDelegate = GroupTestHelper.GetDefaultGroupDelegate(); // When var result = groupsDataService.GetGroupDelegates(5).ToList(); // Then using (new AssertionScope()) { result.Count.Should().Be(24); result.First(x => x.GroupDelegateId == expectedFirstGroupDelegate.GroupDelegateId).Should() .BeEquivalentTo(expectedFirstGroupDelegate); } }