Ejemplo n.º 1
0
 public void build_the_object_def()
 {
     var node = new WriteHtml(typeof (HtmlTag));
     node.As<IContainerModel>().ToObjectDef(DiagnosticLevel.None)
         .FindDependencyDefinitionFor<IMediaWriter<HtmlTag>>()
         .Type.ShouldEqual(typeof (HtmlStringWriter<HtmlTag>));
 }
Ejemplo n.º 2
0
        public WriteHtml AddHtml()
        {
            WriteHtml existing = Writers.OfType <WriteHtml>().FirstOrDefault();

            if (existing != null)
            {
                return(existing);
            }

            var write = new WriteHtml(_resourceType);

            Writers.AddToEnd(write);

            return(write);
        }
Ejemplo n.º 3
0
 public void SetUp()
 {
     theWriter = new WriteHtml(typeof (HtmlTag));
     theChain = BehaviorChain.ForWriter(theWriter);
 }