public async Task Create_audit_bad_request()
        {
            //Arrange
            _mediatorMock.Setup(x => x.Send(It.IsAny <IdentifiedCommand <CreateAuditCommand, Result <long> > >(), default(CancellationToken)))
            .Returns(Task.FromResult(Result.Ok(10L)));

            //Act
            var auditController = new AuditController(_loggerMock.Object, _mediatorMock.Object);
            var actionResult    = await auditController.CreateAuditAsync(new PublishAuditCommand(), String.Empty) as BadRequestObjectResult;

            //Assert
            Assert.AreEqual(actionResult.StatusCode, (int)System.Net.HttpStatusCode.BadRequest);
        }
        public async Task Create_audit_with_requestId_success()
        {
            //Arrange
            _mediatorMock.Setup(x => x.Send(It.IsAny <IdentifiedCommand <PublishAuditCommand, Result <string> > >(), default(CancellationToken)))
            .Returns(Task.FromResult(Result.Ok(Constants.SuccessMessages.AuditPublishSuccess)));

            //Act
            var auditController = new AuditController(_loggerMock.Object, _mediatorMock.Object);
            var actionResult    = await auditController.CreateAuditAsync(new PublishAuditCommand(), Guid.NewGuid().ToString()) as StatusCodeResult;

            //Assert
            Assert.AreEqual(actionResult.StatusCode, (int)System.Net.HttpStatusCode.Created);
        }