/// <summary> /// Constructor /// </summary> public LocalDirectoryDestination(string path, bool persistSignature, ITransforming transform) { if (string.IsNullOrWhiteSpace(path)) { throw new ArgumentNullException("path"); } _transform = transform; _path = path; _persistSignature = persistSignature; }
/// <summary> /// Transform array of double to array of string with using Interface /// </summary> /// <param name="numbers"></param> /// <param name="transforming"></param> /// <returns></returns> public static string[] Transform(double[] numbers, ITransforming transforming) { CheckData <double>(numbers); string[] result = new string[numbers.Length]; for (int i = 0; i < numbers.Length; i++) { result[i] = transforming.Transform(numbers[i]); } return(result); }
public RepositoryDestinationFactory(ILogging logger, ITransforming transform) { _logger = logger ?? throw new ArgumentNullException("logger"); _transform = transform; }