public void Arrange() { // Arrange _fixture = new CertificatePrintStatusUpdateHandlerTestsFixture() .WithCertificate(CertificateReference, CertificateStatus.SentToPrinter, SentToPrinterAt, BatchNumber, SentToPrinterAt.AddMinutes(-5)) .WithCertificateBatchLog(BatchNumber, CertificateReference, CertificateStatus.SentToPrinter, SentToPrinterAt, null, SentToPrinterAt.AddMinutes(5)) .WithBatchLog(BatchNumber); }
public void Arrange() { // Arrange _fixture = new CertificatePrintStatusUpdateHandlerTestsFixture() .WithCertificate(CertificateReference, CertificateStatus.NotDelivered, StatusAt, BatchNumber, StatusAt.AddMinutes(-5)) .WithCertificateBatchLog(BatchNumber, CertificateReference, CertificateStatus.NotDelivered, StatusAt, "Original Reason", StatusAt.AddMinutes(5)) .WithBatchLog(BatchNumber); }
public void Arrange() { // Arrange _fixture = new CertificatePrintStatusUpdateHandlerTestsFixture() .WithCertificate(CertificateReference, CertificateStatus.Printed, CurrentBatchPrintedAt, CurrentBatchNumber, CurrentBatchPrintedAt.AddMinutes(-5)) .WithCertificateBatchLog(CurrentBatchNumber, CertificateReference, CertificateStatus.Printed, CurrentBatchPrintedAt, null, CurrentBatchPrintedAt.AddMinutes(5)) .WithCertificateBatchLog(PreviousBatchNumber, CertificateReference, CertificateStatus.SentToPrinter, PreviousBatchSentToPrinterAt, null, PreviousBatchSentToPrinterAt.AddMinutes(5)) .WithBatchLog(CurrentBatchNumber) .WithBatchLog(PreviousBatchNumber); }
public void Arrange() { // Arrange _fixture = new CertificatePrintStatusUpdateHandlerTestsFixture() .WithCertificate(CertificateReferenceFirst, CertificateStatus.SentToPrinter, BatchNumberFirstSentToPrinterAt, BatchNumberFirst, BatchNumberFirstSentToPrinterAt.AddMinutes(-5)) .WithCertificate(CertificateReferenceSecond, CertificateStatus.Printed, BatchNumberSecondPrintedAt, BatchNumberSecond, BatchNumberSecondPrintedAt.AddMinutes(-5)) .WithCertificate(CertificateReferenceThird, CertificateStatus.Printed, BatchNumberSecondPrintedAt, BatchNumberSecond, BatchNumberSecondPrintedAt.AddMinutes(-5)) .WithCertificateBatchLog(BatchNumberFirst, CertificateReferenceFirst, CertificateStatus.SentToPrinter, BatchNumberFirstSentToPrinterAt, null, BatchNumberFirstSentToPrinterAt.AddMinutes(5)) .WithCertificateBatchLog(BatchNumberSecond, CertificateReferenceSecond, CertificateStatus.Printed, BatchNumberSecondPrintedAt, null, BatchNumberSecondPrintedAt.AddMinutes(5)) .WithCertificateBatchLog(BatchNumberSecond, CertificateReferenceThird, CertificateStatus.Printed, BatchNumberSecondPrintedAt, null, BatchNumberSecondPrintedAt.AddMinutes(5)) .WithBatchLog(BatchNumberFirst) .WithBatchLog(BatchNumberSecond); }
public async Task Arrange() { // Arrange _fixture = new CertificatePrintStatusUpdateHandlerTestsFixture() .WithCertificate(CertificateReference, CertificateStatus.Printed, PrintedAt, BatchNumber, PrintedAt.AddMinutes(-5)) .WithCertificateBatchLog(BatchNumber, CertificateReference, CertificateStatus.Printed, PrintedAt, null, PrintedAt.AddMinutes(5)) .WithBatchLog(BatchNumber); var request = new CertificatePrintStatusUpdateRequest { BatchNumber = BatchNumber, CertificateReference = CertificateReference, Status = CertificateStatus.Delivered, StatusAt = DeliveredAt }; // Act _response = await _fixture.Handle(request); }