public void Initialize()
 {
     TestCommon.InitializeTest();
     _hashSet = HashSetFactory.CreateNew(
         DirPath,
         Guid.NewGuid().ToString("P"),
         ServiceProvider.GetAllInstances <IHasher>().FirstOrDefault(p => p.GUID == HashGUID)
         );
     Assert.IsNotNull(_hashSet);
 }
        public void AddHashSetTest()
        {
            var hashSet = HashSetFactory.CreateNew(
                DirPath,
                Guid.NewGuid().ToString("P"),
                ServiceProvider.GetAllInstances <IHasher>().FirstOrDefault(p => p.GUID == HashGUID)
                );

            _hashSetManagementService.ClearHashSets();
            _hashSetManagementService.AddHashSet(hashSet);
            Assert.AreEqual(_hashSetManagementService.HashSets.Count(), 1);
            var hashSet2 = _hashSetManagementService.HashSets.First();

            Assert.AreEqual(hashSet2, hashSet);
        }
        public void Initialize()
        {
            TestCommon.InitializeTest();
            HashSetManagementService.Initialize();
            HashSetManagementService.Current.ClearHashSets();

            var hashSet = HashSetFactory.CreateNew(
                "E:\\anli\\lucene",
                Guid.NewGuid().ToString("P"),
                GenericServiceStaticInstances <IHasher> .Currents.First(
                    p => p.GUID == SingularityForensic.Hash.Constants.HashTypeGUID_MD5
                    )
                );

            hashSet.Name = testHashSetName;
            HashSetManagementService.AddHashSet(hashSet);


            _vm = new HashSetManagementDialogViewModel();
            _vm.Initialize();
        }