Esempio n. 1
0
        public async Task Can_Find_Addresses_By_UserID()
        {
            List <ShoppingAddress> addresses = await addressRepo.FindAddressesByUserIDAsync("#421521");

            ShoppingAddress[] addArr = addresses.ToArray();

            Assert.AreEqual(3, addArr.Length);
            Assert.AreEqual("Orchard Rd", addArr[0].Line1);
            Assert.AreEqual("Sunset St", addArr[1].Line1);
            Assert.AreEqual("Chestnut Rd", addArr[2].Line1);
        }