You are here:
Home › Info › Blog › Duck
25 February 2011
Sweet little duck pattern
There's a hunter
In everyone of us :)
Duck was posted by Serge at 25 February 2011 16:29. This entry was posted in the category patterns.
By Rajael 12/07/14 (2 years ago)
Hi Gabriel,I have incorporated CustomItemGenerator' into my prtcjeos and now I want to work with automated unit testing using NUnit Framework on one of my project.When I access the properties (like CustomTextField) generated through CustomItemGenerator' in NUnit GUI it throws error, below is the stack trace of error -at Sitecore.Pipelines.RenderField.RenderFieldArgs..ctor()at Sitecore.Web.UI.WebControls.FieldRenderer.RenderField()at Sitecore.Web.UI.WebControls.FieldRenderer.Render()at CustomItemGenerator.Fields.BaseCustomField`1.get_Rendered()at CustomItemGenerator.Fields.SimpleTypes.CustomTextField.get_Text()But when I create my own properties (string type) in the same class (generated through CustomItemGenerator'), they are accessible in NUnit GUI.It would be great if you can provide some help on this problem.