public Run(IComparisonGeneratorsFactory factory) { InternalList = new List <ISegment>(); AttemptHistory = new List <Attempt>(); Factory = factory; ComparisonGenerators = Factory.Create(this).ToList(); CustomComparisons = new List <string>() { PersonalBestComparisonName }; Metadata = new RunMetadata(this); }
private Run(IEnumerable <ISegment> collection, IComparisonGeneratorsFactory factory, RunMetadata metadata) { InternalList = new List <ISegment>(); foreach (var x in collection) { InternalList.Add(x.Clone() as ISegment); } AttemptHistory = new List <Attempt>(); Factory = factory; ComparisonGenerators = Factory.Create(this).ToList(); CustomComparisons = new List <string>() { PersonalBestComparisonName }; Metadata = metadata.Clone(this); }