Exemplo n.º 1
0
        private PomodorosProductivity GetProductivity(ProductivityCommandArgs productivityCommandArgs)
        {
            var  sinceTime             = productivityCommandArgs.SinceTime;
            bool allowPartialPomodoros = !productivityCommandArgs.CountPartialPomodoros;
            var  acceptablePomodoros   = this.allRegisteredPomodoros.Where(p => sinceTime <= (allowPartialPomodoros ? p.End : p.Start));

            return(new PomodorosProductivity(acceptablePomodoros));
        }
 private PomodorosProductivity GetProductivity(ProductivityCommandArgs productivityCommandArgs)
 {
     var sinceTime = productivityCommandArgs.SinceTime;
     bool allowPartialPomodoros = !productivityCommandArgs.CountPartialPomodoros;
     var acceptablePomodoros = this.allRegisteredPomodoros.Where(p => sinceTime <= (allowPartialPomodoros ? p.End : p.Start));
     return new PomodorosProductivity(acceptablePomodoros);
 }