Example #1
0
        public static void Main(string[] args)
        {
            var cakeMaker = new Baking.CakeMaker(new ElectricOvenService(), new WoodenSpoonService());

            var recipe = new SimpleCakeRecipe();

            var cake = cakeMaker.MakeACake(recipe);
        }
        public void Should_bake_and_decorate_cake_with_homemade_fakes()
        {
            var recipe = new TestCakeRecipe();

            var cakeMaker = new CakeMaker(new FakeOvenService(), new StubMixerService());

            var cake = cakeMaker.MakeACake(recipe);

            cake.HasBeenBaked.ShouldBeTrue();
            cake.HasBeenDecordated.ShouldBeTrue();
        }
        public void Should_bake_and_decorate_cake()
        {
            var recipe = new TestCakeRecipe();

            var cakeMaker = new CakeMaker(new ElectricOvenService(), new WoodenSpoonService());

            var cake = cakeMaker.MakeACake(recipe);

            cake.HasBeenBaked.ShouldBeTrue();
            cake.HasBeenDecordated.ShouldBeTrue();
        }