Beispiel #1
0
        public void CostTypeRule02PassesValidCostTypeDeliverableCodeCombinations()
        {
            var model = new SupplementaryDataModel
            {
                DeliverableCode = "CG01",
                CostType        = "Grant"
            };
            var rule = new CostTypeRule02();

            Assert.True(rule.Execute(model));
        }
Beispiel #2
0
        public void CostTypeRule02PassesValidCostTypeDeliverableCodeCombinations()
        {
            var model = new SupplementaryDataModel
            {
                DeliverableCode = "CG01",
                CostType        = "Grant"
            };
            var rule = new CostTypeRule02(_messageServiceMock.Object);

            Assert.True(rule.IsValid(model));
        }
Beispiel #3
0
        public void CostTypeRule02CatchesInvalidCostTypeDeliverableCodeCombinations()
        {
            var model = new SupplementaryDataModel
            {
                DeliverableCode = "CG01",
                CostType        = "I am not valid"
            };
            var rule = new CostTypeRule02();

            Assert.False(rule.Execute(model));
        }
Beispiel #4
0
        public void CostTypeRule02CatchesInvalidCostTypeDeliverableCodeCombinations()
        {
            var model = new SupplementaryDataModel
            {
                DeliverableCode = "CG01",
                CostType        = "I am not valid"
            };
            var rule = new CostTypeRule02(_messageServiceMock.Object);

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