public void Itarare_Cheeseburger()
        {
            this.cheeseburger = new Corn(this.cheeseburger);

            Assert.AreEqual<string>("Bread, Hamburger, Cheese, Corn", this.cheeseburger.Description);
            Assert.AreEqual<int>(370, this.cheeseburger.Calories());
        }
        public void Ilheus_Cheeseburger()
        {
            this.cheeseburger = new PepperSauce(this.cheeseburger);

            Assert.AreEqual<string>("Bread, Hamburger, Cheese, Pepper Sauce", this.cheeseburger.Description);
            Assert.AreEqual<int>(320, this.cheeseburger.Calories());
        }
        public void Itarare_Cheeseburger_With_Onion_Rings()
        {
            this.cheeseburger = new Corn(this.cheeseburger);
            this.cheeseburger = new OnionRings(this.cheeseburger);

            Assert.AreEqual<string>("Bread, Hamburger, Cheese, Corn, Onion Rings", this.cheeseburger.Description);
            Assert.AreEqual<int>(510, this.cheeseburger.Calories());
        }
        public void Ilheus_Cheeseburger_With_Onion_Rings_And_Corn()
        {
            this.cheeseburger = new PepperSauce(this.cheeseburger);
            this.cheeseburger = new OnionRings(this.cheeseburger);
            this.cheeseburger = new Corn(this.cheeseburger);

            Assert.AreEqual<string>("Bread, Hamburger, Cheese, Pepper Sauce, Onion Rings, Corn", this.cheeseburger.Description);
            Assert.AreEqual<int>(530, this.cheeseburger.Calories());
        }
Example #5
0
 public OnionRings(Sandwich sandwich)
     : base(sandwich)
 {
 }
Example #6
0
 public void Init()
 {
     this.mocks = new MockRepository();
     this.sandwichMock = this.mocks.DynamicMock<Sandwich>();
 }
 public SandwichDecorator(Sandwich sandwich)
 {
     this.sandwich = sandwich;
 }
Example #8
0
 public PepperSauce(Sandwich sandwich)
     : base(sandwich)
 {
 }
 public void Init()
 {
     this.cheeseburger = new Cheeseburger();
 }
Example #10
0
 public Corn(Sandwich sandwich)
     : base(sandwich)
 {
 }