Exemple #1
0
        public void Given_Files_When_GetFilesAsyncsIsCalled_Then_ShouldReturnZeroFiles()
        {
            RunOnDatabase(context =>
            {
                // ARRANGE
                var filesRepository = new FilesRepository(context);

                // ACT
                var files   = filesRepository.GetAllAsync();
                var counter = files.Result.Count;
                // ASSERT
                counter.Should().Be(0);
            });
        }