public void RewardSetViewModel002_ReasonSelected()
        {
            RewardSetViewModel model = new RewardSetViewModel();

            ESLTracker.DataModel.Enums.RewardReason reason = ESLTracker.DataModel.Enums.RewardReason.LevelUp;

            model.RewardReason = reason;

            Assert.AreEqual(0, model.RewardsAdded.Count);
            Assert.AreEqual(4, model.RewardsEditor.Count);
            Assert.AreEqual(reason, model.RewardReason);
        }
        public void RewardSetViewModel003_ReasonSelectedAndRewardModified()
        {
            RewardSetViewModel model = new RewardSetViewModel();

            ESLTracker.DataModel.Enums.RewardReason reason = ESLTracker.DataModel.Enums.RewardReason.LevelUp;

            model.RewardReason = reason;

            model.RewardsEditor[1].Reward.Quantity = 1;

            Assert.AreEqual(1, model.RewardsAdded.Count);
            Assert.AreEqual(4, model.RewardsEditor.Count);
            Assert.AreEqual(reason, model.RewardReason);
        }
        public void RewardSetViewModel004_ReasonChanged()
        {
            RewardSetViewModel model = new RewardSetViewModel();

            ESLTracker.DataModel.Enums.RewardReason reason  = ESLTracker.DataModel.Enums.RewardReason.LevelUp;
            ESLTracker.DataModel.Enums.RewardReason reason2 = ESLTracker.DataModel.Enums.RewardReason.Quest;

            model.RewardReason = reason;

            model.RewardsEditor[1].Reward.Quantity = 1;

            model.RewardReason = reason2;

            model.RewardsEditor[1].Reward.Quantity = 2;

            Assert.AreEqual(2, model.RewardsAdded.Count);
            Assert.AreEqual(4, model.RewardsEditor.Count);
            Assert.AreEqual(1, model.RewardsAdded.Where(r => r.Quantity == 1).Count());
            Assert.AreEqual(1, model.RewardsAdded.Where(r => r.Quantity == 2).Count());
        }