setType() public méthode

public setType ( string type ) : void
type string
Résultat void
 private Handling assembleFrom(HandlingEvent handlingEvent)
 {
     Handling handling = new Handling();
     handling.setLocation(handlingEvent.Location.Name);
     handling.setType(handlingEvent.Activity.Type.ToString());
     handling.setVoyage(handlingEvent.Voyage.VoyageNumber.Value);
     return handling;
 }
        public void reportHandling()
        {
            reportPusher.reportHandlingEvent(eventSequenceNumber);

            Handling expected = new Handling();
            expected.setLocation("Hongkong");
            expected.setType("RECEIVE");
            expected.setVoyage("");

            reportSubmission.AssertWasCalled(s => s.submitHandling(Arg.Is("ABC"), Arg.Is(expected)));
        }