I am having trouble getting the count by its type.
How do I get the count of Home (PartnerIntegrationbTesting.Context.Home)? There are 4 items in the List (quoteList.Products)
>Solution :
Use .Count() with a filtering function. is will test if the left-hand object is the type specified on the right.
var countOfHomeProducts = quoteList.Products
.Count(p => p is PartnerIntegrationbTesting.Context.Home);

