Ejemplo n.º 1
0
 /// <summary>
 /// Constructor where each dependent component can be passed as input.
 /// This is useful in the unit tests.
 /// </summary>
 /// <param name="jester">Reference to the component which holds data and predicts precipitation</param>
 /// <param name="ingester">Reference to the component which ingests data</param>
 /// <param name="outgester">Reference to the component which serializes precipitation data to JSON</param>
 public DigestionProcess(Jester jester, Ingester ingester, Outgester outgester)
 {
     DataCollector  = jester;
     DataIngester   = ingester;
     JsonSerializer = outgester;
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Default constructor. Each dependent component is constructed.
 /// </summary>
 public DigestionProcess()
 {
     DataCollector  = new Jester();
     DataIngester   = new Ingester(DataCollector, new FileContentImporter());
     JsonSerializer = new Outgester();
 }