예제 #1
0
        public void ReturnsContactsFromDagobah()
        {
            var fromDagobah = new ContactManager(ContactsEndpoint.Find()).ContactsFromDagobah();

            Assert.True(fromDagobah.All(c => c.Addresses.First().Country == "Dagobah"));
            Assert.True(fromDagobah.First().Name == "Minch Yoda");
        }
예제 #2
0
        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);
        }
예제 #3
0
        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);
        }
예제 #4
0
        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");
        }
예제 #5
0
        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);
        }