public void LoadRepo() { WindowUSCurrencyRepo loadRepo = new WindowUSCurrencyRepo(new List <ICoin>()); repo = new USCurrencyRepo((List <ICoin>)loadRepo.Load()); RaisePropertyChangedEvent("RepoTotal"); }
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); }