public void MenuButton_Click(object sender, EventArgs e)
        {
            string name = (sender as ToolStripButton).Name;

            MenuCommandFactory menuCommandFactory = new MenuCommandFactory();

            IMenuCommand menuCommand = menuCommandFactory.CreateIMenuCommnadObject(_drawingFeatures, name);

            menuCommand.Execute();

            _drawingFeatures.PaintingArea.Refresh();
        }
        public void CreateIMenuCommnadObject_SaveCommand_Test()
        {
            MenuCommandFactory target = new MenuCommandFactory();

            IDrawingFeatures drawingFeatures = new DrawingFeaturesMock();

            string menuCommandName = "Save";

            IMenuCommand actual;

            actual = target.CreateIMenuCommnadObject(drawingFeatures, menuCommandName);

            Assert.IsTrue(actual is SaveCommand);
        }