public void IsNewIlrSubmissionShouldBeValidIfCurrentIlrIsNull() { validateIlrSubmission = new ValidateIlrSubmission(); var result = validateIlrSubmission.IsNewIlrSubmission(new IlrSubmissionValidationRequest { CurrentIlr = null }); Assert.IsTrue(result); }
public void IsNewIlrSubmissionShouldBeInValidIfCurrentIlrMatchIncomingMessageIlr() { validateIlrSubmission = new ValidateIlrSubmission(); var result = validateIlrSubmission.IsNewIlrSubmission(new IlrSubmissionValidationRequest { CurrentIlr = currentIlr, IncomingPaymentUkprn = currentIlr.Ukprn, IncomingPaymentSubmissionDate = currentIlr.IlrSubmissionDateTime }); Assert.IsFalse(result); }
public void IsNewIlrSubmissionShouldBeValidIfCurrentIlrDoNotMatchIncomingMessageIlrDate() { validateIlrSubmission = new ValidateIlrSubmission(); var result = validateIlrSubmission.IsNewIlrSubmission(new IlrSubmissionValidationRequest { CurrentIlr = currentIlr, IncomingPaymentUkprn = currentIlr.Ukprn, IncomingPaymentSubmissionDate = DateTime.MinValue }); Assert.IsTrue(result); }