public void IDoozer_TestFrameworkDoozer_ImplementsIDoozer()
        {
            CreateDoozer();
            IDoozer implementsDoozer = doozer as IDoozer;

            Assert.IsNotNull(implementsDoozer);
        }
Exemplo n.º 2
0
        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));
        }
Exemplo n.º 3
0
        public object BuildItem(BuildItemArgs args)
        {
            IDoozer doozer = (IDoozer)addIn.CreateObject(className);

            if (doozer == null)
            {
                return(null);
            }
            AddInTree.Doozers[name] = doozer;
            return(doozer.BuildItem(args));
        }
Exemplo n.º 4
0
        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));
        }
Exemplo n.º 5
0
        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));
        }
Exemplo n.º 6
0
//
//		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!");
            }
        }