/// <summary> /// Tests that we can /// 1) Retrieve a collection of values of type V from the catalog /// 2) Manually iterate over the returned collection. /// </summary> /// <typeparam name="V">Type of values stored in catalog</typeparam> private void TestIterateOverAll <V>(IAll <V> catalog, string desc = null) { Console.WriteLine($"{DescToDescription<V>(desc)}, iteration over All property..."); foreach (V item in catalog.All) { Console.WriteLine(item); } Console.WriteLine(); }
public All(IAll All) { _all = All; }
public DomainModel(bool loadTestData = false) { Cars = new CarCatalog(loadTestData); Movies = new MovieCatalog(loadTestData); }