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

            Assert.True(rule.IsValid(model));
        }
Beispiel #2
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));
        }