示例#1
0
 private static void vehicleArgumentsCollection(
     ArgumentsCollection i_ArgumentsCollection)
 {
     i_ArgumentsCollection.AddArgument(
         eArgumentKeys.LicensePlate,
         new ArgumentWrapper("License plate number", null, false, typeof(string)));
     i_ArgumentsCollection.AddArgument(
         eArgumentKeys.Model,
         new ArgumentWrapper("Model", null, false, typeof(string)));
 }
示例#2
0
 private static void TicketArgumentsCollection(
     ArgumentsCollection i_ArgumentsCollection)
 {
     i_ArgumentsCollection.AddArgument(
         eArgumentKeys.OwnerName,
         new ArgumentWrapper("Owner's name", null, false, typeof(string)));
     i_ArgumentsCollection.AddArgument(
         eArgumentKeys.OwnerPhoneNumber,
         new ArgumentWrapper("Owner's phone number", null, false, typeof(string)));
 }
示例#3
0
 private static void TruckArgumentsCollection(
     ArgumentsCollection i_ArgumentsCollection)
 {
     wheelsArgumentsCollectionCreator(i_ArgumentsCollection, Truck.k_NumberOfWheels);
     i_ArgumentsCollection.AddArgument(
         eArgumentKeys.HazardousMaterials,
         new ArgumentWrapper("Contains hazardous materials", new[] { "True", "False" }, true, typeof(bool)));
     i_ArgumentsCollection.AddArgument(
         eArgumentKeys.HaulVolume,
         new ArgumentWrapper("Container volume in cubic centimeter", null, false, typeof(float)));
 }
示例#4
0
 private static void MotorcycleArgumentsCollection(
     ArgumentsCollection i_ArgumentsCollection)
 {
     wheelsArgumentsCollectionCreator(i_ArgumentsCollection, Motorcycle.k_NumberOfWheels);
     i_ArgumentsCollection.AddArgument(
         eArgumentKeys.LicenseType,
         new ArgumentWrapper("License type", Enum.GetNames(typeof(Motorcycle.eLicenseType)), true, typeof(Motorcycle.eLicenseType)));
     i_ArgumentsCollection.AddArgument(
         eArgumentKeys.EngineVolume,
         new ArgumentWrapper("Engine volume in cubic centimeter", null, false, typeof(float)));
 }
示例#5
0
 private static void CarArgumentsCollection(
     ArgumentsCollection i_ArgumentsCollection)
 {
     wheelsArgumentsCollectionCreator(i_ArgumentsCollection, Car.k_NumberOfWheels);
     i_ArgumentsCollection.AddArgument(
         eArgumentKeys.Color,
         new ArgumentWrapper("Exterior color", Enum.GetNames(typeof(eCarColors)), true, typeof(string)));
     i_ArgumentsCollection.AddArgument(
         eArgumentKeys.NumberOfDoors,
         new ArgumentWrapper("Number of doors", Enum.GetNames(typeof(eNumberOfCarDoors)), true, typeof(string)));
 }
示例#6
0
 private static void wheelsArgumentsCollectionCreator(ArgumentsCollection i_ArgumentsCollection, int i_NumberOfWheels)
 {
     for (int i = 1; i <= i_NumberOfWheels; i++)
     {
         i_ArgumentsCollection.AddArgument(
             eArgumentKeys.WheelManufacturer,
             i,
             new ArgumentWrapper(string.Format("Wheel {0} manufacturerer", i), null, false, typeof(string)));
         i_ArgumentsCollection.AddArgument(
             eArgumentKeys.WheelCurrentPressure,
             i,
             new ArgumentWrapper(
                 string.Format("Wheel {0} current air pressure", i), null, false, typeof(float)));
     }
 }
示例#7
0
 private static void ElectricVehicleArgumentsCollection(
     ArgumentsCollection i_ArgumentsCollection)
 {
     i_ArgumentsCollection.AddArgument(
         VehicleFactory.eArgumentKeys.CurrentAmountOfEnergy,
         new ArgumentWrapper("Current amount of hours remaining in battery", null, false, typeof(float)));
 }
示例#8
0
 private static void GasVehicleArgumentsCollection(
     ArgumentsCollection i_ArgumentsCollection)
 {
     i_ArgumentsCollection.AddArgument(
         VehicleFactory.eArgumentKeys.CurrentAmountOfGasoline,
         new ArgumentWrapper("Current amount of fuel in liters", null, false, typeof(float)));
 }