private void SetDefaults()
 {
     JobId           = Guid.NewGuid();
     StartTime       = DateTime.Today.AddHours(8);
     EndTime         = DateTime.Today.AddHours(11);
     Description     = $"Job {JobId}";
     CustomerBuilder = new CustomerBuilder();
     VehicleBuilder  = new VehicleBuilder();
     VehicleBuilder.WithOwnerId(CustomerBuilder.Id);
 }
 private void SetDefaults()
 {
     CustomerBuilder       = new CustomerBuilder();
     VehicleBuilder        = new VehicleBuilder();
     MaintenanceJobBuilder = new MaintenanceJobBuilder();
 }
 public MaintenanceJobPlannedEventBuilder WithVehicleBuilder(VehicleBuilder builder)
 {
     VehicleBuilder = builder;
     return(this);
 }
Example #4
0
 public PlanMaintenanceJobCommandBuilder WithVehicleBuilder(VehicleBuilder vehicleBuilder)
 {
     VehicleBuilder = vehicleBuilder;
     return(this);
 }