﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using PracticePatterns.Patterns.Command.Interfaces;

namespace PracticePatterns.Patterns.Command.Classes.Command
{
    public class MicroWaveCommand : ICommand
    {
        MicroWave _mw;
        public MicroWaveCommand(MicroWave mw)
        {
            this._mw = mw;
        }

        public void Execute()
        {
            this._mw.OnMicroWave();
        }

        public void Undo()
        {
            this._mw.OffMicroWave();
        }
    }
}
