Last active
November 3, 2023 20:44
-
-
Save ahmetkucukoglu/bbb05ad89b1aa5f0bc9cbdf0b2b17d1d to your computer and use it in GitHub Desktop.
ConcreteState - CustomsClearedState
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 CustomsClearedState : ShipmentState | |
{ | |
public override void OutForDelivery(Shipment shipment) | |
{ | |
Console.WriteLine("The cargo is out for delivery."); | |
shipment.MoveTo(new OutForDeliveryState()); | |
} | |
public override string ToString() => nameof(CustomsClearedState); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment