public async Task SaveFileDataAsyncMethodCallsCorrectServiceMethodTest()
        {
            var byteArray = new byte[] { 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20 };
            var fileBlobServiceRequestDto = new FilePersistenceServiceRequestDto { Bytes = byteArray, ContentType = "img", FileName = "MyTest.img" };

            var mockFilesPersistenceService = new Mock<IFilesPersistenceService>();
            var persistenceController = new FilesPersistenceController(mockFilesPersistenceService.Object);

            var fileDataId = await persistenceController.SaveFileDataAsync(fileBlobServiceRequestDto);
            mockFilesPersistenceService.Verify(m => m.SaveFileDataAsync(fileBlobServiceRequestDto.Bytes, fileBlobServiceRequestDto.ContentType, fileBlobServiceRequestDto.FileName), Times.Once());
        }
        public async Task SaveFileDataAsyncMethodReturnsCorrectTypeTest()
        {
            var byteArray = new byte[] { 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20 };
            var fileBlobServiceRequestDto = new FilePersistenceServiceRequestDto { Bytes = byteArray, ContentType = "img", FileName = "MyTest.img" };

            var mockFilesPersistenceService = new Mock<IFilesPersistenceService>();
            var persistenceController = new FilesPersistenceController(mockFilesPersistenceService.Object);

            var result = await persistenceController.SaveFileDataAsync(fileBlobServiceRequestDto);
            Assert.AreEqual(typeof(OkNegotiatedContentResult<FilePersistenceServiceResponseDto>), result.GetType());
        }
        public async Task<IHttpActionResult> SaveFileDataAsync(FilePersistenceServiceRequestDto fileBlobServiceRequestDto)
        {
            var guid = await _filesPersistenceService.SaveFileDataAsync(fileBlobServiceRequestDto.Bytes, fileBlobServiceRequestDto.ContentType, fileBlobServiceRequestDto.FileName);

            return Ok(new FilePersistenceServiceResponseDto{Guid = guid});
        }