예제 #1
0
 public AircraftState(string id,
                      Registration registration,
                      ManufacturerSpecification manufacturerSpecification,
                      Carrier carrier)
 {
     Id           = id;
     Registration = registration;
     ManufacturerSpecification = manufacturerSpecification;
     Carrier = carrier;
 }
예제 #2
0
 public AircraftState Consign(Registration registration,
                              ManufacturerSpecification manufacturerSpecification,
                              Carrier carrier) =>
 new AircraftState(Id, registration, manufacturerSpecification, carrier);
예제 #3
0
        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));
        }