コード例 #1
0
        public void should_be_make_a_cop()
        {
            var cop = new PassengerFactory().MakePassenger(EPassengerType.PoliceOfficer);

            cop.GetPassengerType().Should().Be(EPassengerType.PoliceOfficer);
            cop.DriverPerform().Should().BeTrue();
        }
コード例 #2
0
        public void should_be_make_a_stewardess()
        {
            var cop = new PassengerFactory().MakePassenger(EPassengerType.Stewardess);

            cop.GetPassengerType().Should().Be(EPassengerType.Stewardess);
            cop.DriverPerform().Should().BeFalse();
        }
コード例 #3
0
        public void should_be_make_a_cabin_chief()
        {
            var cop = new PassengerFactory().MakePassenger(EPassengerType.CabinChief);

            cop.GetPassengerType().Should().Be(EPassengerType.CabinChief);
            cop.DriverPerform().Should().BeTrue();
        }
コード例 #4
0
        public void should_be_make_a_flight_officer()
        {
            var cop = new PassengerFactory().MakePassenger(EPassengerType.FlightOfficer);

            cop.GetPassengerType().Should().Be(EPassengerType.FlightOfficer);
            cop.DriverPerform().Should().BeFalse();
        }
コード例 #5
0
        public void should_be_make_a_prisoner()
        {
            var cop = new PassengerFactory().MakePassenger(EPassengerType.Prisoner);

            cop.GetPassengerType().Should().Be(EPassengerType.Prisoner);
            cop.DriverPerform().Should().BeFalse();
        }