public async Task Triggering_all_validators_returns_right_ErrorCode_from_Headers() { var client = GetClient(); try { var response = await client.PostTriggerValidatorsAsync(new TriggerValidators(), GrpcUtils.ToHeaders(new { CreditCard = "NotCreditCard", Email = "NotEmail", Empty = "NotEmpty", Equal = "NotEqual", ExclusiveBetween = 1, GreaterThan = 1, GreaterThanOrEqual = 1, InclusiveBetween = 1, Length = "Length", LessThan = 20, LessThanOrEqual = 20, NotEmpty = "", NotEqual = "NotEqual", Null = "NotNull", RegularExpression = "FOO", ScalePrecision = 123.456m })); Assert.Fail("Should throw"); } catch (WebServiceException ex) { //ex.ResponseStatus.PrintDump(); AssertTriggerValidatorsResponse(ex); } }