public void ProcessRequest_CacheEnabled_SendNotModifiedCalled()
        {
            // Assign
            _fileHandler.Setup(x => x.IsFileCanBeUsedFromCache(It.IsAny <string>(), It.IsAny <DateTime?>(), It.IsAny <DateTime>()))
            .Returns(true);

            // Act
            _requestHandler.ProcessRequest(_context.Object);

            // Assert
            _response.Verify(x => x.SendNotModified(It.IsAny <DateTime>(), It.IsAny <string>()));
        }
        public void ProcessRequest_CorrectFile_TaskReturnedDataLoaded()
        {
            // Act
            var result = _requestHandler.ProcessRequest(_context.Object);

            result.Wait();

            // Assert
            _responseWriter.Verify(x => x.WriteAsync(It.Is <byte[]>(d => d[0] == 13), It.IsAny <IOwinResponse>()));
        }