예제 #1
0
        public void LoadRepo()
        {
            WindowUSCurrencyRepo loadRepo = new WindowUSCurrencyRepo(new List <ICoin>());

            repo = new USCurrencyRepo((List <ICoin>)loadRepo.Load());
            RaisePropertyChangedEvent("RepoTotal");
        }
예제 #2
0
        public void SaveableCurrenyRepo_Saving_Load()
        {
            //Arrange
            List <ICoin> loadedCoins;

            //Act
            repo.Save();
            repo.Load();
            loadedCoins = repo.Coins;

            //Assert
            Assert.AreEqual(repo.Coins.Count, loadedCoins.Count);

            CollectionAssert.AreEqual(repo.Coins, loadedCoins);
        }