public VehicleTypeCreated( VehicleTypeId vehicleTypeId, string vehicleTypeName) { VehicleTypeId = vehicleTypeId; VehicleTypeName = vehicleTypeName; GlobalSequenceNumber = DateTimeOffset.UtcNow; }
public VehicleTypeChanged( VehicleId vehicleId, VehicleTypeId oldVehicleTypeId, VehicleTypeId newVehicleTypeId, string newVehicleTypeName) { VehicleId = vehicleId; OldTypeId = oldVehicleTypeId; NewTypeId = newVehicleTypeId; NewVehicleTypeName = newVehicleTypeName; CreatedAt = DateTimeOffset.UtcNow; }
public VehicleAdded( VehicleId vehicleId, string licensePlateId, VehicleTypeId vehicleTypeId, TenantId tenantId, string?name = null) { VehicleId = vehicleId; LicensePlateId = licensePlateId; Name = name; VehicleTypeId = vehicleTypeId; CreatedAt = DateTimeOffset.UtcNow; TenantId = tenantId; }
public ChangeVehicleType( VehicleId vehicleId, VehicleTypeId vehicleTypeId) { VehicleId = vehicleId; VehicleTypeId = vehicleTypeId; }