コード例 #1
0
ファイル: ContactManagerTests.cs プロジェクト: yadyn/Xero-Net
        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);
        }
コード例 #2
0
ファイル: ContactManagerTests.cs プロジェクト: yadyn/Xero-Net
        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");
        }
コード例 #3
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);
        }