public void IDoozer_TestFrameworkDoozer_ImplementsIDoozer() { CreateDoozer(); IDoozer implementsDoozer = doozer as IDoozer; Assert.IsNotNull(implementsDoozer); }
public object BuildItem(object caller, Codon codon, ArrayList subItems) { IDoozer doozer = (IDoozer)addIn.CreateObject(className); if (doozer == null) { return(null); } AddInTree.Doozers[name] = doozer; return(doozer.BuildItem(caller, codon, subItems)); }
public object BuildItem(BuildItemArgs args) { IDoozer doozer = (IDoozer)addIn.CreateObject(className); if (doozer == null) { return(null); } AddInTree.Doozers[name] = doozer; return(doozer.BuildItem(args)); }
public object BuildItem(object caller, Extension extension, ArrayList subItems) { IDoozer doozer = (IDoozer)plugin.CreateObject(className); if (doozer == null) { return(null); } PluginTree.Doozers[name] = doozer; return(doozer.BuildItem(caller, extension, subItems)); }
public object BuildItem(object caller, Codon codon, System.Collections.ArrayList subItems) { IDoozer doozer = (IDoozer)this.addIn.CreateObject(this.className); if (doozer == null) { return(null); } AddInTree.Doozers[this.name] = doozer; return(doozer.BuildItem(caller, codon, subItems)); }
// // public void BinarySerialize(BinaryWriter writer) // { // writer.Write(AddInTree.GetNameOffset(name)); // writer.Write(AddInTree.GetAddInOffset(addIn)); // properties.BinarySerialize(writer); // } // public object BuildItem(object owner, ArrayList subItems) { try { IDoozer doozer = AddInTree.Doozers[Name]; if (!doozer.HandleConditions && conditions.Length > 0) { ConditionFailedAction action = GetFailedAction(owner); if (action != ConditionFailedAction.Nothing) { return(null); } } return(doozer.BuildItem(owner, this, subItems)); } catch (KeyNotFoundException) { throw new CoreException("Doozer " + Name + " not found!"); } }