Beispiel #1
0
        public VehicleStatistics Create(IAmVehicle vehicle)
        {
            var stat = new VehicleStatistics
            {
                Status                = vehicle.Status.ToDto(),
                DistanceFromStart     = vehicle.Distance,
                FinishTime            = vehicle.FinishedAt,
                MalfunctionStatistics = GetMalfunctionStatistics(vehicle),
            };

            return(stat);
        }
 public FakeVehicleStatisticsFactory(VehicleStatistics stats)
 {
     _stats = stats;
 }