예제 #1
0
        public void Query_Get_Category_Of_House_With_details()
        {
            CreateMockHouses();
            var result = HouseProjections.GetHouseDetailsList(999, 0);

            Assert.IsTrue(result.Any(x => x.Entry == "my entry"));
            Assert.IsTrue(result.Any(x => x.CatDescription == "my description"));
        }
예제 #2
0
        public void Query_Get_Customer_Of_House_With_details()
        {
            CreateMockHouses();
            var result = HouseProjections.GetHouseDetailsList(999, 0);

            Assert.IsTrue(result.Any(x => x.OwnerFirstName == "first name"));
            Assert.IsTrue(result.Any(x => x.OwnerLastName == "last name"));
            Assert.IsTrue(result.Any(x => x.OwnerAge == 99));
        }
예제 #3
0
        public void Query_Get_Address_Of_House_With_details()
        {
            CreateMockHouses();
            var result = HouseProjections.GetHouseDetailsList(999, 0);

            Assert.IsTrue(result.Any(x => x.Address1 == "my address"));
            Assert.IsTrue(result.Any(x => x.City == "my city"));
            Assert.IsTrue(result.Any(x => x.Country == "my country"));
            Assert.IsTrue(result.Any(x => x.Number == "my st. number"));
            Assert.IsTrue(result.Any(x => x.ZipCode == "zip code"));
        }