private void CreateRowRuleUD100CheckBox01Equals_False()
        {
            // Description: PackSlipComments
            // **** begin autogenerated code ****
            RuleAction disabledUD100_Character02 = RuleAction.AddControlSettings(this.oTrans, "UD100.Character02", SettingStyle.Disabled);

            RuleAction[] ruleActions = new RuleAction[] {
                disabledUD100_Character02
            };
            // Create RowRule and add to the EpiDataView.
            RowRule rrCreateRowRuleUD100CheckBox01Equals_False = new RowRule("UD100.CheckBox01", RuleCondition.Equals, false, ruleActions);

            ((EpiDataView)(this.oTrans.EpiDataViews["UD100"])).AddRowRule(rrCreateRowRuleUD100CheckBox01Equals_False);
            // **** end autogenerated code ****
        }
Example #2
0
        public void Return_False_When_3_Positions_Have_Same_Symbol_In_A_Row()
        {
            var board = new int?[3][];

            board[0] = new int?[3] {
                1, null, 1
            };
            board[1] = new int?[3] {
                2, null, 1
            };
            board[2] = new int?[3] {
                null, 1, 1
            };

            var rule = new RowRule();

            Assert.IsFalse(rule.IsWinning(board));
        }
Example #3
0
        public void WhenValueDoesNotExist_ReturnTrue()
        {
            var value = 8;
            var board = new MatrixBoard(new int[9, 9] {
                { 0, 0, 0, 0, 0, 0, 0, 0, 0 },
                { 0, 0, 0, 0, 0, 0, 0, 0, 0 },
                { 0, 0, 0, 0, 0, 0, 0, 0, 0 },
                { 0, 0, 0, 0, 0, 0, 0, 0, 0 },
                { 0, 0, 0, 0, 0, 0, 0, 0, 0 },
                { 0, 0, 0, 0, 0, 0, 0, 0, 0 },
                { 0, 0, 0, 0, 0, 0, 0, 0, 0 },
                { 0, 0, 0, 0, 0, 0, 0, 0, 0 },
                { 0, 0, 0, 0, 0, 0, 0, 0, 0 }
            });
            var sut = new RowRule();

            var actual = sut.Test(board, new Point(6, 4), value);

            actual.Should().BeTrue();
        }
Example #4
0
    private void setupRowRules()
    {
        // Description: Visibility Rule
        // **** begin autogenerated code ****
        RuleAction disableCFICode = RuleAction.AddControlSettings(this.oTrans, "APTran.CNCFICode", SettingStyle.ReadOnly);

        RuleAction[] ruleActions        = new RuleAction[] { disableCFICode };
        RowRule      ruleDisableCFICode = new RowRule(null, new RowRuleConditionDelegate2(CFICodeEnabled), null, ruleActions);

        ((EpiDataView)(this.oTrans.EpiDataViews["APTran"])).AddRowRule(ruleDisableCFICode);

        RuleAction disableTaxDtlCFICode = RuleAction.AddControlSettings(this.oTrans, "APTTaxDtl.CNCFICode", SettingStyle.ReadOnly);

        RuleAction[] ruleActionsTaxDtl        = new RuleAction[] { disableTaxDtlCFICode };
        RowRule      ruleDisableTaxDtlCFICode = new RowRule(null, new RowRuleConditionDelegate2(CFICodeEnabled), null, ruleActionsTaxDtl);

        ((EpiDataView)(this.oTrans.EpiDataViews["APTTaxDtl"])).AddRowRule(ruleDisableTaxDtlCFICode);

        RuleAction disableTaxCFICode = RuleAction.AddControlSettings(this.oTrans, "TaxDtl.CNCFICode", SettingStyle.ReadOnly);

        RuleAction[] ruleActionsTax        = new RuleAction[] { disableTaxCFICode };
        RowRule      ruleDisableTaxCFICode = new RowRule(null, new RowRuleConditionDelegate2(CFICodeEnabled), null, ruleActionsTax);

        ((EpiDataView)(this.oTrans.EpiDataViews["TaxDtl"])).AddRowRule(ruleDisableTaxCFICode);

        RuleAction disableBFCFICode = RuleAction.AddControlSettings(this.oTrans, "BankTran.CNCFICode", SettingStyle.ReadOnly);

        RuleAction[] ruleActionsBF        = new RuleAction[] { disableBFCFICode };
        RowRule      ruleDisableBFCFICode = new RowRule(null, new RowRuleConditionDelegate2(CFICodeEnabled), null, ruleActionsBF);

        ((EpiDataView)(this.oTrans.EpiDataViews["BankTran"])).AddRowRule(ruleDisableBFCFICode);

        RuleAction disableBFCFICodeTax = RuleAction.AddControlSettings(this.oTrans, "BankTranTaxDtl.CNCFICode", SettingStyle.ReadOnly);

        RuleAction[] ruleActionsBFTax        = new RuleAction[] { disableBFCFICodeTax };
        RowRule      ruleDisableBFCFICodeTax = new RowRule(null, new RowRuleConditionDelegate2(CFICodeEnabled), null, ruleActionsBFTax);

        ((EpiDataView)(this.oTrans.EpiDataViews["BankTranTaxDtl"])).AddRowRule(ruleDisableBFCFICodeTax);

        // **** end autogenerated code ****
    }