コード例 #1
0
 public void Initialize()
 {
     _calculator  = new DegradationCalculator();
     _trackPoints = new List <int> {
         6, 7, 51, 75, 255
     };
     _temperature = 67;
 }
コード例 #2
0
        public ResultsService()
        {
            DegradationResults = new Dictionary <TyrePlacement, Action <DegradationResults> >
            {
                { TyrePlacement.FrontLeft, null },
                { TyrePlacement.FrontRight, null },
                { TyrePlacement.RearLeft, null },
                { TyrePlacement.RearRight, null }
            };
            _selectedTyres = new Dictionary <TyrePlacement, TyreInformation>
            {
                { TyrePlacement.FrontLeft, null },
                { TyrePlacement.FrontRight, null },
                { TyrePlacement.RearLeft, null },
                { TyrePlacement.RearRight, null }
            };

            _degradationCalculator  = new DegradationCalculator();
            _tyreSelectionValidator = new TyreSelectionValidator();
        }