Beispiel #1
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);
        }
Beispiel #2
0
        private void SaveChangeMade()
        {
            WindowUSCurrencyRepo saveRepo = new WindowUSCurrencyRepo(Repo.Coins);

            saveRepo.Save();
        }
Beispiel #3
0
        public void SaveRepo()
        {
            WindowUSCurrencyRepo saveRepo = new WindowUSCurrencyRepo(Repo.Coins);

            saveRepo.Save();
        }