Exemplo n.º 1
0
 public ProductsAppRepository(IModelFactory modelFactory)
 {
     _products = new List <IProduct> {
         modelFactory.CreateProduct(1, "Tomato Soup", "Grocery", 1),
         modelFactory.CreateProduct(2, "Yo-yo", "Toys", 3.75M),
         modelFactory.CreateProduct(3, "Hammer", "Hardware", 16.99M)
     };
 }