public void DeleteItem(string path) { try { RsFacade.DeleteItem(path); toolStripStatusLabel.Text = String.Format("'{0}' deleted", path); Application.DoEvents(); } catch (Exception ex) { throw new Exception(String.Format("An error occured: {0}", ex.Message)); } }
private void DeleteItem(string path, ReportItemTypes checkType, string checkName) { facade.DeleteItem(path); var folder = facade.ListChildren(facade.BaseUrl, false) .FirstOrDefault(i => i.Name == checkName && i.Type == checkType); Assert.IsNull(folder); }