public void LiskovSubstitutionTest() { var golden = new Golden(); var silver = new Silver(); var enquiry = new Enquiry(); var list = new List <Customer> { golden, silver, enquiry }; foreach (var customer in list) { customer.Add(); } }
public GoldStar() { Width = 50; Height = 50; Stroke = Brushes.Black; star = new ShapeBuilder(ShapeBuilder.Type.STAR).Build(); RenderTransform = new ScaleTransform(1, 1, star.Width / 2, star.Height / 2); Effect = new BlurEffect() { Radius = 0 }; Fill = new SolidColorBrush(Colors.LightYellow); State = new Golden(this); }