static void Main(string[] args) { TestManager tm = new TestManager(); Console.WriteLine(tm.GetTestState()); tm.Percentage = 51; Console.WriteLine(tm.GetTestState()); tm.Percentage = 90; Console.WriteLine(tm.GetTestState()); tm.Percentage = 49; Console.WriteLine(tm.GetTestState()); Console.ReadLine(); }
public YellowState(TestManager manager, int percentage) : base(manager, percentage) { }
public GreenState(TestManager manager, int percentage) : base(manager, percentage) { }