public async void PostMultipleDocumentsModelStateErrorReturnsBadRequest()
        {
            using (var context = DbTestContext.GenerateContextWithData())
                using (var controller = new DocumentsController(context, _mapper))
                {
                    controller.ModelState.AddModelError("an error", "some error");
                    List <DocumentDto> DocumentList = Enumerable.Range(101, 10).Select(i => GetTestDocumentDto(i)).ToList();

                    var result = await controller.PostDocuments(DocumentList);

                    Assert.IsType <BadRequestObjectResult>(result);
                }
        }
        public async void PostMultipleDocumentsCorrectDataCreatesDocuments()
        {
            using (var context = DbTestContext.GenerateContextWithData())
                using (var controller = new DocumentsController(context, _mapper))
                {
                    List <DocumentDto> DocumentList = Enumerable.Range(101, 10).Select(i => GetTestDocumentDto(i)).ToList();

                    var result = await controller.PostDocuments(DocumentList);

                    Assert.NotNull(result);
                    Assert.IsType <CreatedAtActionResult>(result);
                }
        }