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")); }
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)); }
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")); }