Beispiel #1
0
        public static void PipeTestInitialize(TestContext context)
        {
            testConfig        = TestConfiguration.Instance;
            pipe              = Helper.Pipe.CreatePipe("CardsPipe");
            simplePhase       = Helper.Phase.CreatePhase(pipe, "SimplePhase", false);
            customFieldsPhase = Helper.Phase.CreatePhase(pipe, "CustomFieldsPhase", false);

            // Add Custom Fields

            var numberField = new Helper.CustomField("Mileage", "number");

            customFieldsPhase.CreateField(numberField);
            var stringField = new Helper.CustomField("Chassi code", "short_text");

            customFieldsPhase.CreateField(stringField);
            var dateTimeField = new Helper.CustomField("Bought on", "datetime");

            customFieldsPhase.CreateField(dateTimeField);
            var productionField = new Helper.CustomField("Production date", "date");

            customFieldsPhase.CreateField(productionField);
            var checklistField = new Helper.OptionsCustomField("Optionals", "checklist_vertical", new string[] { "Air-conditioning", "Hidraulic drive", "ABS brakes" });

            customFieldsPhase.CreateField(checklistField);
            var goodUntilField = new Helper.CustomField("Good until", "due_date");

            customFieldsPhase.CreateField(goodUntilField);
        }
        public static void PipeTestInitialize(TestContext context)
        {
            testConfig        = TestConfiguration.Instance;
            pipe              = Helper.Pipe.CreatePipe("PhasesPipe");
            simplePhase       = Helper.Phase.CreatePhase(pipe, "SimplePhase", false);
            customFieldsPhase = Helper.Phase.CreatePhase(pipe, "CustomFieldsPhase", false);

            // Add Custom Fields

            var numberField = new Helper.CustomField("Area", "number");

            customFieldsPhase.CreateField(numberField);
            var stringField = new Helper.CustomField("Main room", "short_text");

            customFieldsPhase.CreateField(stringField);
            var dateTimeField = new Helper.CustomField("Construction started", "datetime");

            customFieldsPhase.CreateField(dateTimeField);
        }
Beispiel #3
0
        public static void PipeTestInitialize(TestContext context)
        {
            testConfig        = TestConfiguration.Instance;
            pipe              = Helper.Pipe.CreatePipe("CardsPipe");
            simplePhase       = Helper.Phase.CreatePhase(pipe, "SimplePhase", false);
            customFieldsPhase = Helper.Phase.CreatePhase(pipe, "CustomFieldsPhase", false);

            // Add Custom Fields

            var numberField = new Helper.CustomField("Mileage", "number");

            customFieldsPhase.CreateField(numberField);
            var stringField = new Helper.CustomField("Chassi code", "short_text");

            customFieldsPhase.CreateField(stringField);
            var dateTimeField = new Helper.CustomField("Bought on", "datetime");

            customFieldsPhase.CreateField(dateTimeField);
        }
 public static void PipeTestInitialize(TestContext context)
 {
     testConfig = TestConfiguration.Instance;
     pipe1      = Helper.Pipe.CreatePipe("Pipe1");
 }