private void StoreRun(string theName) { var runTime = Utility.StopTheWatch( Stopwatch, $"Finished: {theName}"); MyRunStorer.StoreRun( theName, runTime); }
public virtual void Finish() { RunTime = Utility.StopTheWatch(Stopwatch, $"Finished: {Name}"); if (string.IsNullOrEmpty(Name)) { throw new ApplicationException("Unnamed Report !!!"); } MyRunStorer.StoreRun(Name, RunTime); LastRun = DateTime.Now; }