Example #1
0
        public virtual List <string> CreateMetric()
        {
            EndDate = EndDate.AddMinutes(1);
            var metricTypeRepository = MetricTypeRepositoryFactory.Create();

            MetricType = metricTypeRepository.GetMetricsByID(MetricTypeID);
            var settingsRepository = Models.Repositories.ApplicationSettingsRepositoryFactory.Create();
            var settings           = settingsRepository.GetGeneralSettings();

            MetricFileLocation = settings.ImagePath;
            MetricWebPath      = settings.ImageUrl;
            LogMetricRun();
            return(new List <string>());
        }
Example #2
0
 /// <summary>
 /// Gets a value indicating whether the current subject is in the past.
 /// </summary>
 public bool IsPastSubject()
 {
     return(DateTime.Now > EndDate.AddMinutes(30));
 }
Example #3
0
        /// <summary>
        /// Gets a value indicating whether the current subject is ongoing at the moment.
        /// </summary>
        public bool IsCurrentSubject()
        {
            DateTime now = DateTime.Now;

            return(StartDate < now && now < EndDate.AddMinutes(30));
        }