public InputHtmlBuilderTests()
 {
     input      = TextBoxBaseTestHelper.CreateInput <int>(null, null);
     renderer   = new TextBoxBaseHtmlBuilder <int>(input);
     objectName = "t-integerinput";
     input.Name = "IntegerInput";
 }
Beispiel #2
0
        public void Should_be_able_to_create_renderer()
        {
            TextBoxBaseHtmlBuilderFactory <int> factory = new TextBoxBaseHtmlBuilderFactory <int>();

            ITextBoxBaseHtmlBuilder renderer = factory.Create(TextBoxBaseTestHelper.CreateInput <int>(null, null));

            Assert.IsType <TextBoxBaseHtmlBuilder <int> >(renderer);
        }
 public TextBoxBaseTests()
 {
     viewContext = TestHelper.CreateViewContext();
     input       = TextBoxBaseTestHelper.CreateInput <int>(null, viewContext);
 }
 public InputBuilderTests()
 {
     input   = TextBoxBaseTestHelper.CreateInput <int>(null, null);
     builder = new TextBoxBaseBuilderTestDouble(input);
 }