private EnvironmentContainer() { UpTime = DateTime.Now; CurrentEventManager = new EventAggregator(); _calculateHashsumController = new CalculateHash(); _saveHashToFileController = new SaveHashToFile(); _settingsController = new SettingsController(); }
protected void SetUp() { SynchronizationContext.SetSynchronizationContext(new DispatcherSynchronizationContext()); _currenTestContext = TestContext.CurrentContext; _testFile1 = _currenTestContext.TestDirectory + @"\Files\test1.txt"; _testFile2 = _currenTestContext.TestDirectory + @"\Files\test2.txt"; _calculateHashController = new CalculateHash(); }
public ChecksumService(ICalculateHash calculateHash, Logger logger) { _calculateHash = calculateHash; _logger = logger; }
public MachineId(Logger logger, ICalculateHash hash) { _logger = logger; _hash = hash; }