예제 #1
0
 /// <summary>
 /// Creates a mock car profile.
 /// </summary>
 /// <returns></returns>
 public static MockProfile CarMock()
 {
     return(MockProfile.Mock("CarMock", x => new Speed()
     {
         Value = 50f / 3.6f,
         Direction = 0
     }, VehicleTypes.MotorVehicle, VehicleTypes.Vehicle));
 }
예제 #2
0
 /// <summary>
 /// Creates a mock car profile.
 /// </summary>
 /// <returns></returns>
 public static MockProfile CarMock(Func <IAttributeCollection, Speed> getSpeed)
 {
     return(MockProfile.Mock("CarMock", getSpeed, VehicleTypes.MotorVehicle, VehicleTypes.Vehicle));
 }