示例#1
0
        public void IsNewIlrSubmissionShouldBeValidIfCurrentIlrIsNull()
        {
            validateIlrSubmission = new ValidateIlrSubmission();

            var result = validateIlrSubmission.IsNewIlrSubmission(new IlrSubmissionValidationRequest
            {
                CurrentIlr = null
            });

            Assert.IsTrue(result);
        }
示例#2
0
        public void IsNewIlrSubmissionShouldBeInValidIfCurrentIlrMatchIncomingMessageIlr()
        {
            validateIlrSubmission = new ValidateIlrSubmission();
            var result = validateIlrSubmission.IsNewIlrSubmission(new IlrSubmissionValidationRequest
            {
                CurrentIlr                    = currentIlr,
                IncomingPaymentUkprn          = currentIlr.Ukprn,
                IncomingPaymentSubmissionDate = currentIlr.IlrSubmissionDateTime
            });

            Assert.IsFalse(result);
        }
示例#3
0
        public void IsNewIlrSubmissionShouldBeValidIfCurrentIlrDoNotMatchIncomingMessageIlrDate()
        {
            validateIlrSubmission = new ValidateIlrSubmission();

            var result = validateIlrSubmission.IsNewIlrSubmission(new IlrSubmissionValidationRequest
            {
                CurrentIlr                    = currentIlr,
                IncomingPaymentUkprn          = currentIlr.Ukprn,
                IncomingPaymentSubmissionDate = DateTime.MinValue
            });

            Assert.IsTrue(result);
        }