Esempio n. 1
0
 /// <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();
 }
Esempio n. 2
0
 public All(IAll All)
 {
     _all = All;
 }
Esempio n. 3
0
 public DomainModel(bool loadTestData = false)
 {
     Cars   = new CarCatalog(loadTestData);
     Movies = new MovieCatalog(loadTestData);
 }