public async Task GetSeasonsAllAsync_ShouldReturnList() { // ARRANGE var mockContextFactory = SetupContextFactory(); _sut = new TermService(mockContextFactory.Object); // ACT var actual = await _sut.GetSeasonsAllAsync(); // ASSERT Assert.Equal(GetTestSeasons().Count, actual.Entity.Count); Assert.Equal(ComparableObject.Convert(GetTestSeasons().First()), ComparableObject.Convert(actual.Entity.First())); }