public FilesController(IS3 s3, ISecurityContext securityContext ) { this.s3 = s3; this.securityContext = securityContext; }
public FileServiceTests() { this.s3Client = Substitute.For <IAmazonS3>(); this.regisAgent = Substitute.For <IRedisDataAgent>(); file = Substitute.For <IFormFile>(); s3 = Substitute.For <IS3>(); fileService = new FileService(s3Client, regisAgent, s3); }
public FileService(IAmazonS3 s3Client, IRedisDataAgent regisAgent, IS3 s3) { this.s3Client = s3Client ?? throw new ArgumentNullException(nameof(s3Client)); this.regisAgent = regisAgent ?? throw new ArgumentNullException(nameof(regisAgent)); this.s3 = s3 ?? throw new ArgumentNullException(nameof(s3)); }
public bool sendMyFileToS3(System.IO.Stream localFilePath, string bucketName, string subDirectoryInBucket, string fileNameInS3) { IS3 s3 = this; return(string.IsNullOrEmpty(s3.TryAddToAmazonBucket(localFilePath, fileNameInS3, subDirectoryInBucket))); }
public ISimpleMarkerSymbol newSimpleMarkerSymbol(Color color, double angle, IS3.Core.Graphics.MarkerAngleAlignment angleAlignment, double size, IS3.Core.Graphics.SimpleMarkerStyle style, ISimpleLineSymbol outline, double xOffset, double yOffset) { IS3SimpleMarkerSymbol symbol = new IS3SimpleMarkerSymbol(); symbol.Color = color; symbol.Angle = angle; symbol.AngleAlignment = angleAlignment; symbol.Size = size; symbol.Style = style; symbol.Outline = outline as IS3SimpleLineSymbol; symbol.XOffset = xOffset; symbol.YOffset = yOffset; return symbol; }
public ISimpleMarkerSymbol newSimpleMarkerSymbol(Color color, double size, IS3.Core.Graphics.SimpleMarkerStyle style) { IS3SimpleMarkerSymbol symbol = new IS3SimpleMarkerSymbol(); symbol.Color = color; symbol.Size = size; symbol.Style = style; return symbol; }
public ISimpleFillSymbol newSimpleFillSymbol(Color color, IS3.Core.Graphics.SimpleFillStyle style, ISimpleLineSymbol outline) { IS3SimpleFillSymbol symbol = new IS3SimpleFillSymbol(); symbol.Color = color; symbol.Outline = outline as IS3SimpleLineSymbol; symbol.Style = style; return symbol; }
public ISimpleLineSymbol newSimpleLineSymbol(Color color, IS3.Core.Graphics.SimpleLineStyle style, double width) { IS3SimpleLineSymbol symbol = new IS3SimpleLineSymbol(); symbol.Color = color; symbol.Style = style; symbol.Width = width; return symbol; }