Ejemplo n.º 1
0
        static void Main(string[] args)
        {
            WriteLine("Hello World!");

            MaintainableUnit miles      = new MaintainableUnit("Mile", typeof(int));
            MaintainableType car        = new MaintainableType("Car", "Any automobile, including cars, trucks, vans, etc.");
            TaskDefault      oilDefault = new TaskDefault("Change oil", car, 6000, miles, null, "Change the oil of this vehicle.");
            Maintainable     myCar      = new Maintainable("Red Civic", car, "2016 Honda Civic Sedan, CVT", 40000);

            WriteLine("Done");
        }
Ejemplo n.º 2
0
 public TaskDefault(string name, MaintainableType type, double duration, MaintainableUnit unit, int?severity, string description)
 {
     this.Name             = name;
     this.TypeId           = type.Id;
     this.Type             = type;
     this.DurationValue    = duration;
     this.UnitId           = unit.Id;
     this.MaintainableUnit = unit;
     this.Severity         = severity;
     this.Description      = description;
 }