public void Rewards_can_be_saved_loaded_and_deleted() { Reward reward = GetTestReward(); RewardDao dao = new RewardDao(); dao.Save(reward); Reward loaded = dao.Load(reward.Key); Assert.False(loaded.IsEmpty); dao.Delete(reward.Key); Reward reloaded = dao.Load(reward.Key); Assert.True(reloaded.IsEmpty); }
private void Populate() { List <Reward> rewards = dao.Load(); foreach (Reward reward in rewards) { AddRewardToListview(reward); } }
private void LoadRewards() { RewardDao dao = new RewardDao(); availableRewards = dao.Load(); }