public async void BulkInsert_Errors()
        {
            SalesTaxRateControllerMockFacade mock = new SalesTaxRateControllerMockFacade();

            var mockResponse = new Mock <CreateResponse <ApiSalesTaxRateResponseModel> >(new FluentValidation.Results.ValidationResult());

            mockResponse.SetupGet(x => x.Success).Returns(false);

            mock.ServiceMock.Setup(x => x.Create(It.IsAny <ApiSalesTaxRateRequestModel>())).Returns(Task.FromResult <CreateResponse <ApiSalesTaxRateResponseModel> >(mockResponse.Object));
            SalesTaxRateController controller = new SalesTaxRateController(mock.ApiSettingsMoc.Object, mock.LoggerMock.Object, mock.TransactionCoordinatorMock.Object, mock.ServiceMock.Object, mock.ModelMapperMock.Object);

            controller.ControllerContext             = new ControllerContext();
            controller.ControllerContext.HttpContext = new DefaultHttpContext();

            var records = new List <ApiSalesTaxRateRequestModel>();

            records.Add(new ApiSalesTaxRateRequestModel());
            IActionResult response = await controller.BulkInsert(records);

            response.Should().BeOfType <ObjectResult>();
            (response as ObjectResult).StatusCode.Should().Be((int)HttpStatusCode.UnprocessableEntity);
            mock.ServiceMock.Verify(x => x.Create(It.IsAny <ApiSalesTaxRateRequestModel>()));
        }