public void Should_be_able_to_create_renderer() { WindowHtmlBuilderFactory factory = new WindowHtmlBuilderFactory(); IWindowHtmlBuilder renderer = factory.Create(WindowTestHelper.CreateWindow(null)); Assert.IsType <WindowHtmlBuilder>(renderer); }
public WindowRenderingTests() { textWriter = new Mock <TextWriter>(); tagBuilder = new Mock <IWindowHtmlBuilder>(); rootTag = new Mock <IHtmlNode>(); rootTag.SetupGet(t => t.Children).Returns(() => new List <IHtmlNode>()); headerTag = new Mock <IHtmlNode>(); headerTag.SetupGet(t => t.Children).Returns(() => new List <IHtmlNode>()); headerTag.Setup(t => t.AppendTo(It.IsAny <IHtmlNode>())).Returns(headerTag.Object); tagBuilder.Setup(t => t.WindowTag()).Returns(rootTag.Object); tagBuilder.Setup(t => t.HeaderTag()).Returns(headerTag.Object); window = WindowTestHelper.CreateWindow(tagBuilder.Object); window.Name = "Window"; }
public WindowBuilderTests() { component = WindowTestHelper.CreateWindow(null); builder = new WindowBuilder(component); }
public WindowHtmlBuilderTests() { window = WindowTestHelper.CreateWindow(null); renderer = new WindowHtmlBuilder(window); window.Name = "Window"; }