public async Task ReturnsContactsFromTatooine() { var fromTatooine = new ContactManager(await ContactsEndpoint.FindAsync()).ContactsFromTatooine(); Assert.True(fromTatooine.All(c => c.Addresses.First().Country == "Tatooine")); Assert.True(fromTatooine.Count() == 2); }
public async Task ReturnsContactsFromDagobah() { var fromDagobah = new ContactManager(await ContactsEndpoint.FindAsync()).ContactsFromDagobah(); Assert.True(fromDagobah.All(c => c.Addresses.First().Country == "Dagobah")); Assert.True(fromDagobah.First().Name == "Minch Yoda"); }
public void ReturnsContactsFromTatooine() { var fromTatooine = new ContactManager(ContactsEndpoint.Find()).ContactsFromTatooine(); Assert.True(fromTatooine.All(c => c.Addresses.First().Country == "Tatooine")); Assert.True(fromTatooine.Count() == 2); }