Last active
November 3, 2023 20:43
-
-
Save ahmetkucukoglu/9fd5d1a502270f09b4da4f97850f4121 to your computer and use it in GitHub Desktop.
ConcreteState - InTransitState
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class InTransitState : ShipmentState | |
| { | |
| public override void InCustoms(Shipment shipment) | |
| { | |
| Console.WriteLine("The cargo has arrived at customs."); | |
| shipment.MoveTo(new InCustomsState()); | |
| } | |
| public override string ToString() => nameof(InTransitState); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment