public void IndexPostRedirectsToCorrectAction_WhenFileIsNull()
        {
            var sut = new ImportController(null, Mock.Of<ILogger<ImportController>>());
            sut.SetFakeUser("1");
            var result = sut.Index(null) as RedirectToActionResult;

            Assert.Equal(result.ActionName, nameof(ImportController.Index));
        }
        public void IndexPostDoesNotSendImportRequestsCommand_WhenFileIsNull()
        {
            var mediator = new Mock<IMediator>();

            var sut = new ImportController(mediator.Object, Mock.Of<ILogger<ImportController>>());
            sut.SetFakeUser("1");
            sut.Index(null);

            mediator.Verify(x => x.Send(It.IsAny<ImportRequestsCommand>()), Times.Never);
        }