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