Exemplo n.º 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");
        }
Exemplo n.º 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);
        }
Exemplo n.º 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);
        }
Exemplo n.º 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");
        }
Exemplo n.º 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);
        }