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);
        }
Beispiel #2
0
 private void SetupDefaults()
 {
     dao         = new RewardDao();
     factory     = new RewardFactory();
     SavedReward = RewardFactory.Empty;
 }
        private void LoadRewards()
        {
            RewardDao dao = new RewardDao();

            availableRewards = dao.Load();
        }