Пример #1
0
 public void setcp0()
 {
     var cp = new CheckPoint(new DateTime(2015, 6, 2, 13, 0, 0, DateTimeKind.Utc));
     var score = new CycleScore(cp.Cycle, DateTimeOffset.Now.Ticks);
     score.SetScore(0, new UpdateScore { EnlightenedScore = 1000, ResistanceScore = 0 }, new Mock<ICycleScoreUpdater>().Object);
     foreach (var summary in score.Summary(false))
     {
         Console.WriteLine(summary);
     }
 }
Пример #2
0
        public void SkipCP()
        {
            var cp = CheckPoint.Current();
            var score = new CycleScore(cp.Cycle, DateTimeOffset.Now.Ticks);
            var updater = new Mock<ICycleScoreUpdater>().Object;

            score.SetScore(2, new UpdateScore { EnlightenedScore = 1000, ResistanceScore = 0 }, updater);
            score.SetScore(3, new UpdateScore { EnlightenedScore = 500, ResistanceScore = 0 }, updater);
            score.SetScore(4, new UpdateScore { EnlightenedScore = 500, ResistanceScore = 1999 }, updater);

            Console.WriteLine(string.Join("\n",score.Summary(false)));
        }