コード例 #1
0
        public void Refresh(ExampleResult obj)
        {
            var target = this;
            var source = obj;

            target.ID      = source.ID;
            target.Course  = source.Course;
            target.Example = source.Example;

            target.FirstAttempt = source.FirstAttempt;
            target.LastAttempt  = source.LastAttempt;
            target.Time         = source.Time;

            target.NumOfCompilations = source.NumOfCompilations;
            target.NumOfErrors       = source.NumOfErrors;
            target.NumOfFailed       = source.NumOfFailed;
            target.NumOfSkipped      = source.NumOfSkipped;
            target.NumOfSucceeded    = source.NumOfSucceeded;
            target.NumOfTestRuns     = source.NumOfTestRuns;
            target.NumOfTests        = source.NumOfTests;

            target.MemErrors            = source.MemErrors;
            target.CyclomaticComplexity = source.CyclomaticComplexity;
            target.LinesOfCode          = source.LinesOfCode;
        }
コード例 #2
0
 public ExampleResultViewModel(ExampleResult obj)
 {
     Refresh(obj);
 }