public void GetByReasons()
        {
            repo.Clear();
            var a = new Consumed("luket", new DateTime(2014, 4, 4), "4:30PM", "Work", " Stress", "fight");
            var b = new Consumed("luket", new DateTime(2014, 4, 5), "5:30PM", "Work", " Stress", "fight");

            repo.Add(a);
            repo.Add(b);
            var c = repo.GetByLocation("Work");
            var d = c.Count;

            Assert.AreEqual(b.ToString(), c.ToString());
            repo.Clear();
        }
 public override string ToString()
 {
     return($"<ProcessingOutcome Cursor={Cursor?.ToString()} Consumed={Consumed?.ToString()} Changed={Changed} PendingCharRemoval={PendingCharRemoval} Navigate={Navigate?.ToString()} NavigateIsProgrammatic={NavigateIsProgrammatic}>");
 }
Example #3
0
 public override string ToString()
 {
     return($"{HourOfDay}\t{DayOfWeek}\t{WeekOfYear}\t{Month}\t{SolarSurface.ToString("F")}\t{AvgGenArea.ToString("F")}\t{Consumed.ToString("F")}\t{UvIndex.ToString("F")}\t{GeneratedSolar.ToString("F")}");
 }