public void DeveRetornarArquivoNuloPorIdSeNaoExistir()
        {
            using (var context = new FileDbContext(GetDbContextOptions())) {
                context.Database.EnsureDeleted();
                context.Database.EnsureCreated();
                var fileS3Repository = new FileS3Repository(context);
                int invalidId        = 0;
                var fileS3Result     = fileS3Repository.GetById(invalidId);

                Assert.Null(fileS3Result);
            }
        }
        public void DeveRetornarArquivoPorId()
        {
            using (var context = new FileDbContext(GetDbContextOptions())) {
                context.Database.EnsureDeleted();
                context.Database.EnsureCreated();
                var fileS3Repository = new FileS3Repository(context);
                var fileS3           = fileS3Repository.Add(GetNewRandomFileS3());

                var fileS3Result = fileS3Repository.GetById(fileS3.Id);

                Assert.NotNull(fileS3Result);
                Assert.Equal(fileS3.Id, fileS3Result.Id);
            }
        }