public void TelescopeDropdown_ShouldReturnValidTelescopes() { // Arrange StarStuffDbContext db = this.Database; TelescopeService telescopeService = new TelescopeService(db); this.SeedDatabase(db); List <Telescope> fakeTelescopes = this.GetFakeTelescopes(); int i = -1; // Act IEnumerable <TelescopeServiceModel> telescopes = telescopeService.TelescopeDropdown(); // Assert foreach (var actual in telescopes) { Telescope expected = fakeTelescopes[++i]; this.CompareTelescopes(expected, actual); } }