public void AESRunWPFTest()
        {

            ICryption AEScipher = new AESEncryption();


            ILocalSettings tr = new wpfLocalSettings();
            ILocalSettings trOrginal = new wpfLocalSettings();
            ICryption cr = new noencryption();
            ISettingRepository dummyrepository = new DummyRepository(tr, cr);
            ISettingRepository dummyrepositoryorg = new DummyRepository(trOrginal, cr);
            ISettingRepository repositoryWPF = new WPFSettingRepository(tr, AEScipher);

            tr = dummyrepository.getdata();
            trOrginal = dummyrepositoryorg.getdata(); 
            repositoryWPF.saveData(tr);

            ILocalSettings returnData = repositoryWPF.getdata();
            Boolean isSame = true;
            int i = 0;
            //isSame = Enumerable.SequenceEqual(tr.icloudSettings.OrderBy(t => t), returnData.icloudSettings.OrderBy(t => t));
            isSame = trOrginal.icloudSettings.SequenceEqual(returnData.icloudSettings);
            i = trOrginal.icloudSettings.Except(returnData.icloudSettings).ToList().Count;
            Assert.Equals(i, 0);
        }
        public void getwpfrepository()
        {
            ILocalSettings tr = new wpfLocalSettings();
            ICryption cr = new noencryption();
            ISettingRepository dummyrepository = new DummyRepository(tr, cr);
            ISettingRepository repositoryWPF = new WPFSettingRepository(tr, cr);
            ILocalSettings tr1 = repositoryWPF.getdata();
            ILocalSettings tr2 = dummyrepository.getdata();

            Assert.AreEqual(tr1.customerKey, tr2.customerKey);

        }