예제 #1
0
        public void ReferenceTypeRule02CatchesInvalidReferenceTypeCostTypeCombinations()
        {
            var model = new SupplementaryDataModel
            {
                ReferenceType = "Other",
                CostType      = "Employee ID"
            };

            var rule = new ReferenceTypeRule02();

            Assert.False(rule.Execute(model));
        }
예제 #2
0
        public void ReferenceTypeRule02PassesValidReferenceTypeCostTypeCombinations()
        {
            var model = new SupplementaryDataModel
            {
                ReferenceType = "Apportioned Cost",
                CostType      = "Employee ID"
            };

            var rule = new ReferenceTypeRule02(_messageServiceMock.Object);

            Assert.True(rule.IsValid(model));
        }
예제 #3
0
        public void ReferenceTypeRule02PassesValidReferenceTypeCostTypeCombinations()
        {
            var model = new SupplementaryDataModel
            {
                ReferenceType = "Apportioned Cost",
                CostType      = "Employee ID"
            };

            var rule = new ReferenceTypeRule02();

            Assert.True(rule.Execute(model));
        }
예제 #4
0
        public void ReferenceTypeRule02CatchesInvalidReferenceTypeCostTypeCombinations()
        {
            var model = new SupplementaryDataModel
            {
                ReferenceType = "Other",
                CostType      = "Employee ID"
            };

            var rule = new ReferenceTypeRule02(_messageServiceMock.Object);

            Assert.False(rule.IsValid(model));
        }