/// <summary>
 /// Constructor.
 /// </summary>
 public CheckpointSubmissionsViewModel(
     UserSubmissionResults submissions,
     ITimeZoneProvider timeZoneProvider)
 {
     User = submissions.User;
     Checkpoints = submissions.SubmissionResults
         .Select
         (
             submission => new CheckpointSubmissionViewModel
             (
                 submission,
                 timeZoneProvider
             )
         ).ToList();
 }
Ejemplo n.º 2
0
        /// <summary>
        /// Constructor.
        /// </summary>
        public BuildResult(
            Build build,
            bool latestBuild,
            Section section,
            IList<Checkpoint> checkpoints,
            IList<Submission> submissions,
            IList<BuildTestCount> allBuildTestCounts)
        {
            Build = build;

            LatestBuild = latestBuild;

            Submissions = new UserSubmissionResults
            (
                build.Commit.User,
                section,
                checkpoints,
                submissions
            );

            AllBuildTestCounts = allBuildTestCounts;
        }
Ejemplo n.º 3
0
        /// <summary>
        /// Constructor.
        /// </summary>
        public BuildResult(
            Build build,
            bool latestBuild,
            Section section,
            IList <Checkpoint> checkpoints,
            IList <Submission> submissions,
            IList <BuildTestCount> allBuildTestCounts)
        {
            Build = build;

            LatestBuild = latestBuild;

            Submissions = new UserSubmissionResults
                          (
                build.Commit.User,
                section,
                checkpoints,
                submissions
                          );

            AllBuildTestCounts = allBuildTestCounts;
        }