Ejemplo n.º 1
0
        public void CostTypeRule01CatchesCostTypesNotInValidList()
        {
            var model = new SupplementaryDataModel
            {
                CostType = "I am not valid"
            };
            var rule = new CostTypeRule01();

            Assert.False(rule.Execute(model));
        }
Ejemplo n.º 2
0
        public void CostTypeRule01PassesValidCostTypes()
        {
            var model = new SupplementaryDataModel
            {
                CostType = "Grant"
            };
            var rule = new CostTypeRule01(_messageServiceMock.Object);

            Assert.True(rule.IsValid(model));
        }
Ejemplo n.º 3
0
        public void CostTypeRule01PassesValidCostTypes()
        {
            var model = new SupplementaryDataModel
            {
                CostType = "Grant"
            };
            var rule = new CostTypeRule01();

            Assert.True(rule.Execute(model));
        }
Ejemplo n.º 4
0
        public void CostTypeRule01CatchesCostTypesNotInValidList()
        {
            var model = new SupplementaryDataModel
            {
                CostType = "I am not valid"
            };
            var rule = new CostTypeRule01(_messageServiceMock.Object);

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