Beispiel #1
0
        public void ShouldReturnValidationErrorForClimate()
        {
            var planet       = StarWarsMockCore.GetPlanetFail();
            var resultMapped = _mapper.Map <Planet>(planet);

            _planetValidator.ShouldHaveValidationErrorFor(e => e.Climate, resultMapped.Climate);
        }
Beispiel #2
0
        public void ShoulReturnErrorForNoId()
        {
            var planet       = StarWarsMockCore.GetPlanetFail();
            var resultMapped = _mapper.Map <Planet>(planet);

            _planetValidator.ShouldHaveValidationErrorFor(e => e.Id, resultMapped.Id);
        }