static void StatePatternDemo() { saleState.Sold(); //Transition to StSold saleState.Available(); //Transition to StAvailable Console.ReadLine(); }