public AircraftState(string id, Registration registration, ManufacturerSpecification manufacturerSpecification, Carrier carrier) { Id = id; Registration = registration; ManufacturerSpecification = manufacturerSpecification; Carrier = carrier; }
public AircraftState Consign(Registration registration, ManufacturerSpecification manufacturerSpecification, Carrier carrier) => new AircraftState(Id, registration, manufacturerSpecification, carrier);
public static ICompletes <AircraftState> Consign(Stage stage, Registration registration, ManufacturerSpecification manufacturerSpecification, Carrier carrier) { var address = stage.AddressFactory.UniquePrefixedWith("g-"); var aircraftActor = stage.ActorFor <IAircraft>(() => new AircraftEntity(address.IdString)); return(aircraftActor.Consign(registration, manufacturerSpecification, carrier)); }