setVoyage() public method

public setVoyage ( string voyage ) : void
voyage string
return void
Beispiel #1
0
 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)));
        }