Esempio n. 1
0
        public async Task ConRefNumber02FailsWithInvalidConRefNumber()
        {
            var model = new SupplementaryDataLooseModel()
            {
                ConRefNumber = "ESF-4999"
            };

            var rule = new ConRefNumberRule02(_messageServiceMock.Object);

            Assert.False(await rule.IsValid(null, model));
        }
Esempio n. 2
0
        public async Task ConRefNumber02PassesForEmptyOrValidConRefNumber(string conRefNumber)
        {
            var model = new SupplementaryDataLooseModel()
            {
                ConRefNumber = conRefNumber
            };

            var rule = new ConRefNumberRule02(_messageServiceMock.Object);

            Assert.True(await rule.IsValid(null, model));
        }