/// <summary> /// Constructor. /// </summary> public SubmittedViewModel( Commit commit, string commitUrl, Checkpoint checkpoint, ITimeZoneProvider timeZoneProvider) { User = commit.User; Checkpoint = checkpoint; Submission = new SubmissionCandidateViewModel ( commit, commitUrl, true /*previousSubmission*/, true /*defaultChoice*/, timeZoneProvider ); }