Beispiel #1
0
        public void CharacterMapper_MapCombatCMToHealthRecord()
        {
            CombatCM cm = new CombatCM();

            cm.MaxHP = 50;

            Health actual = CharacterMapper.mapCombatCMToNewHealthEntity(cm);

            actual.MaxHP.Should().Be(cm.MaxHP);
        }
        public static Health mapCombatCMToNewHealthEntity(CombatCM cm)
        {
            ICreateModelMapper <CombatCM, Health> mapper = new CreateModelMapper <CombatCM, Health>();

            return(mapper.mapViewModelToDataModel(cm));
        }