/// <summary> /// The public static factory method accepting a PassengerType and bool (additional proxy logic) /// </summary> public static ProtectedPassenger Create(PassengerType type, bool isWearingSpaceSuit) { return(new ProtectedPassenger() { m_Passenger = PassengerCreator.Create(type), IsWearingSpaceSuit = isWearingSpaceSuit }); }
private static void prepareForLaunch(PassengerType type) { var passenger = PassengerCreator.Create(type); con(passenger.Speak()); con(passenger.LaunchCommand()); hr(); }
public FactoryFixture() { sut_ExpectedToy = PassengerCreator.Create(PassengerType.Toy); sut_ExpectedAstronaut = PassengerCreator.Create(PassengerType.Astronaut); sut_ExpectedCosmonaut = PassengerCreator.Create(PassengerType.Cosmonaut); sut_ToyFactory = new ToyFactory(); sut_AstronautFactory = new AstronautFactory(); sut_CosmonautFactory = new CosmonautFactory(); }
public AstronautFixture() { sut_Passenger = PassengerCreator.Create(PassengerType.Astronaut); }
public CosmonautFixture() { sut_Passenger = PassengerCreator.Create(PassengerType.Cosmonaut); }
public ToyFixture() { sut_Passenger = PassengerCreator.Create(PassengerType.Toy); }