private void SaveReward() { UpdateReward(); dao.Save(reward); SavedReward = reward.Clone(); }
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); }