public void GetAllPeople() { var people = new StarWarsApiClient(HostOptions.Online).GetAllPeopleAsync().Result; Assert.IsTrue(people.Any()); // make sure everyone is in at least one film (ensures array properties are populated) Assert.IsTrue(people.All(p => p.Films.Any())); }
public void GetAllStarships() { var ships = new StarWarsApiClient(_client, HostOptions.Online).GetAllStarshipsAsync().Result; Assert.IsTrue(ships.Any()); }
public void GetAllPeople() { var people = new StarWarsApiClient(_client, HostOptions.Online).GetAllPeopleAsync().Result; Assert.IsTrue(people.Any()); }