Ejemplo n.º 1
0
        /// <summary>
        ///     Required method for Designer support - do not modify
        ///     the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            SqlDatabaseTestAction Database_RetrieveRandomCountryTest_TestAction;
            var resources = new ComponentResourceManager(typeof(Countries));
            RowCountCondition rowCountCondition1;

            Database_RetrieveRandomCountryTestData        = new SqlDatabaseTestActions();
            Database_RetrieveRandomCountryTest_TestAction = new SqlDatabaseTestAction();
            rowCountCondition1 = new RowCountCondition();
            //
            // Database_RetrieveRandomCountryTest_TestAction
            //
            Database_RetrieveRandomCountryTest_TestAction.Conditions.Add(rowCountCondition1);
            resources.ApplyResources(Database_RetrieveRandomCountryTest_TestAction,
                                     "Database_RetrieveRandomCountryTest_TestAction");
            //
            // rowCountCondition1
            //
            rowCountCondition1.Enabled   = true;
            rowCountCondition1.Name      = "rowCountCondition1";
            rowCountCondition1.ResultSet = 1;
            rowCountCondition1.RowCount  = 1;
            //
            // Database_RetrieveRandomCountryTestData
            //
            Database_RetrieveRandomCountryTestData.PosttestAction = null;
            Database_RetrieveRandomCountryTestData.PretestAction  = null;
            Database_RetrieveRandomCountryTestData.TestAction     = Database_RetrieveRandomCountryTest_TestAction;
        }
 private RowCountCondition CreateFrom(RowCountConditionAttribute attribute)
 {
     var rowCountCondition = new RowCountCondition();
     rowCountCondition.Enabled = true;
     rowCountCondition.Name = attribute.ConditionName;
     rowCountCondition.ResultSet = attribute.ResultSet;
     rowCountCondition.RowCount = attribute.ExpectedValue;
     return rowCountCondition;
 }