public async Task DeleteItem_Execute(UniverseSources source) { var universe = Universe(source); var command = new DeleteProperty(new AsyncProperty(universe.Properties().Create(""))); Assert.IsTrue(command.CanExecute(null)); await command.ExecuteAsync(null); Assert.IsFalse(universe.Properties().Any()); }
private void gridViewProperties_CellContentClick(object sender, DataGridViewCellEventArgs e) { ComponentProperty property = gridViewProperties.Rows[e.RowIndex].Tag as ComponentProperty; if (e.ColumnIndex == DeletePropertyColumn.Index) { DeleteProperty.RaiseEventEx(this, new GenericEventArgs <ComponentProperty>(property)); } else if (e.ColumnIndex == EditPropertyColumn.Index) { EditProperty.RaiseEventEx(this, new GenericEventArgs <ComponentProperty>(property)); } }
//Delete existing Property internal void deleteProperty() { //First edit an existing property editProperty(); System.Threading.Thread.Sleep(10000); Actions actions = new Actions(Global.Driver.driver); actions.MoveToElement(ClickingAddNewProperty); actions.Perform(); //choosing delete option var editOption = Global.Driver.driver.FindElements(By.ClassName("segment"))[0].FindElement(By.ClassName("top-right-corner")).FindElement(By.TagName("i")); editOption.Click(); System.Threading.Thread.Sleep(5000); //Deleting property DeleteProperty.Click(); System.Threading.Thread.Sleep(5000); DeleteConfirm.Click(); }
internal protected virtual T Visit(DeleteProperty node) { return(Visit(node as Expression)); }
protected override EP_VP1 Visit(DeleteProperty node) { return(Visit(node as Expression)); }