コード例 #1
0
ファイル: TestObserver.cs プロジェクト: Rimbik/DeisgnPattern
        public void TestMethod1()
        {
            Clothes clothes = new Clothes("Men-Jeans", 1500);

            clothes.Attach(new Investor("Wrangler"));
            clothes.Attach(new Investor("Lee"));

            clothes.Price = 1200; // On Sale
            clothes.Price = 1900; // On Season
        }