/// <summary> /// Should be deleted after switch will be fully done to serialized objects /// </summary> public ReportInfo(ProjEnvironment Env, GingerRunner GR, bool ReportOnlyExecuted = false) // to remove after discussion !!! { mProjEnvironment = Env; mBFESs = GR.GetAllBusinessFlowsExecutionSummary(ReportOnlyExecuted); TotalExecutionTime = TimeSpan.FromMilliseconds(GR.Elapsed.GetValueOrDefault()); DateCreated = DateTime.Now.ToString(); DateCreatedShort = DateTime.Now.ToString("MM/dd"); ExecutionEnv = mProjEnvironment.Name; ExecutionElapsedTime = TotalExecutionTime; }