示例#1
0
        private void SaveReward()
        {
            UpdateReward();

            dao.Save(reward);
            SavedReward = reward.Clone();
        }
示例#2
0
        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);
        }