public void Can_Do_Delete_Operation()
        {
            // arrange
            var file = Path.GetTempFileName();
            var operation = new DeleteOperation(new FileInfo(file));

            // assume
            File.Exists(file).ShouldBe(true);

            // act
            operation.Do();

            // assert
            File.Exists(file).ShouldBe(false);
        }
 public void DeleteDocument()
 {
     try
     {
         var action = new DeleteOperation(
             SelectedSourceFile);
         OperationsStack.DoOperation(action);
         AfterAction();
     }
     catch (Exception ex)
     {
         Log.Error("Error deleteting document.", ex);
         MessageBox.Show("Error:" + ex.Message);
     }
 }