public async void DeleteManagedFile_ValidItem()
        {
            var ManagedFileService = new ManagedFileService(_ManagedFileRepository.Object);
            await ManagedFileService.DeleteManagedFile(1);

            Assert.Empty(_data);
        }
        public async void GetManagedFileById_ReturnItem()
        {
            var ManagedFileService = new ManagedFileService(_ManagedFileRepository.Object);
            var ManagedFile        = await ManagedFileService.GetManagedFileById(1);

            Assert.NotNull(ManagedFile);
            Assert.Equal(1, ManagedFile.Id);
        }
        public async void CreateManagedFile_ValidItem()
        {
            var ManagedFileService = new ManagedFileService(_ManagedFileRepository.Object);
            var newManagedFileId   = await ManagedFileService.CreateManagedFile("test2.png", new byte[1]);

            Assert.True(_data.Count > 1);
            Assert.True(newManagedFileId > 1);
        }
        public async void UpdateManagedFile_ValidItem()
        {
            var ManagedFileService = new ManagedFileService(_ManagedFileRepository.Object);
            await ManagedFileService.UpdateManagedFile(new ManagedFile
            {
                Id       = 1,
                FileName = "renamed.png"
            });

            Assert.Equal("renamed.png", _data.First(p => p.Id == 1).FileName);
        }