public void CharacterModificationTestCON()
        {
            // arrange
            MeaningfulCalc calc = new MeaningfulCalc();

            CharacterBLL dude = new CharacterBLL();

            dude.StrengthScore     = 10;
            dude.DexterityScore    = 10;
            dude.ConstitutionScore = 10;
            dude.IntelligenceScore = 10;
            dude.WisdomScore       = 10;
            dude.CharismaScore     = 10;

            List <Modifier> listMods = new List <Modifier>();

            Modifier mod = new Modifier();

            mod.StatID         = 8;
            mod.ModifierAmount = 2;

            listMods.Add(mod);

            var expected = 12;

            // act
            calc.CharacterModification(dude, listMods);
            var actual = dude.ConstitutionScore;

            // assert

            Assert.AreEqual(expected, actual);
        }
        public void RollTest()
        {
            // arrange
            MeaningfulCalc calc = new MeaningfulCalc();


            // act
            int result = calc.Roll();

            // assert
            Assert.IsTrue(result > 3 && result < 18);
        }
 public ActionResult Statistics()        //new action result for my meaningfulcalc
 {
     try
     {
         List <FigureBLL> items = null;
         using (ContextBLL dtr = new ContextBLL())
         {
             items = dtr.FiguresGetAll(0, 100);
             MeaningfulCalc          mc = new MeaningfulCalc();
             List <MeaningfulFigure> i  = mc.FiguresToMeaningfulFigures(items);
             List <FigureStats>      s  = mc.Calc(i);
             return(View("Statistics", s));
         }
     }
     catch (Exception ex)
     {
         Logger.Log(ex);
         return(View("Error", ex));
     }
 }