Exemplo n.º 1
0
        public void ReturnVehicleStatistics()
        {
            var vehicle  = VehicleBuilder.Build();
            var vehicle2 = VehicleBuilder.BuildWithVehicleStatusAndDistanceAndFinishTime(VehicleStatus.Finished, 250, "20:33");

            var vehicleStatistics = RaceBuilder.BuildWithVehicles(vehicle, vehicle2).VehicleStatisticsBy(vehicle.Id);

            vehicleStatistics.Distance.Should().Be(vehicle.Distance);
            vehicleStatistics.Status.Should().Be(vehicle.Status);
            vehicleStatistics.FinishTime.Should().Be(vehicle.FinishTime);
        }