private EnvironmentContainer()
 {
     UpTime = DateTime.Now;
     CurrentEventManager         = new EventAggregator();
     _calculateHashsumController = new CalculateHash();
     _saveHashToFileController   = new SaveHashToFile();
     _settingsController         = new SettingsController();
 }
Example #2
0
        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();
        }
Example #3
0
 public ChecksumService(ICalculateHash calculateHash, Logger logger)
 {
     _calculateHash = calculateHash;
     _logger        = logger;
 }
Example #4
0
 public MachineId(Logger logger, ICalculateHash hash)
 {
     _logger = logger;
     _hash   = hash;
 }