public void SetUp()
        {
            _fixture      = new Fixture();
            _mockAmazonS3 = new Mock <IAmazonS3>();
            _subject      = new S3Gateway(_mockAmazonS3.Object);

            _currentBucketName = Environment.GetEnvironmentVariable("GENERATED_PDF_BUCKET_NAME");
            _testBucketName    = _fixture.Create <string>();
            Environment.SetEnvironmentVariable("GENERATED_PDF_BUCKET_NAME", _testBucketName);
        }
示例#2
0
 public S3GatewayTests()
 {
     _s3Gateway = new S3Gateway(_mockS3Client.Object);
 }