Exemple #1
0
        public void ShouldReturnNoValidationErrorForTerrain()
        {
            var planet       = StarWarsMockCore.GetPlanetOK();
            var resultMapped = _mapper.Map <Planet>(planet);

            _planetValidator.ShouldNotHaveValidationErrorFor(e => e.Terrain, resultMapped.Terrain);
        }
Exemple #2
0
        public void ShoudReturnNoErrorForAutoMapperViewModelToDomain()
        {
            var planet       = StarWarsMockCore.GetPlanetOK();
            var resultMapped = _mapper.Map <Planet>(planet);
            var type         = resultMapped.GetType();

            Assert.True(type.Equals(typeof(Planet)));
        }