//const string NOT_ENCRYPTED_MSG = "This file wasn't encrypted!"; //const string ALREADY_ENCRYPTED_MSG = "This file is already encrypted!"; public Application(IOutputPrinter consolePrinter, IInfoCollector infoCollector, IEncryptionService encryptionService, ISwitchInfo switchInfo) { _consolePrinter = consolePrinter; _encryptionService = encryptionService; _switchInfo = switchInfo; _infoCollector = infoCollector; }
public OutputPrinterTests() { _outputPrinter = new OutputPrinter(); _transactions = new List <Transaction> { new Transaction { Size = Constants.Sizes.Medium, Date = DateTime.UtcNow, ShippingPrice = Constants.ShippingPrices.Medium.LaPoste, ShippingProvider = Constants.Providers.LaPoste, Discount = new decimal(0.5) }, new Transaction { Size = Constants.Sizes.Small, Date = DateTime.UtcNow, ShippingPrice = Constants.ShippingPrices.Small.MondialRelay, ShippingProvider = Constants.Providers.MondialRelay }, new Transaction { Size = Constants.Sizes.Large, Date = DateTime.UtcNow, ShippingPrice = Constants.ShippingPrices.Medium.LaPoste, ShippingProvider = Constants.Providers.LaPoste, Discount = new decimal(2.0), CorruptedData = "CorruptedDataTest" } }; }
public EncryptionService(IKeyInfo keyInfo, IOutputPrinter consolePrinter) { _consolePrinter = consolePrinter; _keyinfo = keyInfo; //Create a key if necessary if (!File.Exists(_keyinfo.KeyPath)) { PublishKey(); } //Load the key LoadKey(); }
public SecureEncryptionService(IKeyProvider keyProvider, IOutputPrinter printer) { _keyProvider = keyProvider; _printer = printer; }
public PrinterContainerImpl([KeyFilter("std")] IOutputPrinter defaultPrinter) { this.defaultPrinter = defaultPrinter; }
public ConsoleInputReader(IUserService userService, IOutputPrinter outputPrinter) { _userService = userService; _outputPrinter = outputPrinter; }