bugfix 重命名XnResult
This commit is contained in:
@@ -37,7 +37,7 @@ namespace Ewide.Test
|
|||||||
_output.WriteLine($"login status code {response.StatusCode}");
|
_output.WriteLine($"login status code {response.StatusCode}");
|
||||||
var body = await response.Content.ReadAsStringAsync();
|
var body = await response.Content.ReadAsStringAsync();
|
||||||
_output.WriteLine($"body {body}");
|
_output.WriteLine($"body {body}");
|
||||||
var result = JsonConvert.DeserializeObject<XnRestfulResult<LoginOutput>>(body);
|
var result = JsonConvert.DeserializeObject<RestfulResult<LoginOutput>>(body);
|
||||||
Assert.NotNull(result.Data);
|
Assert.NotNull(result.Data);
|
||||||
}
|
}
|
||||||
[Theory]
|
[Theory]
|
||||||
@@ -56,7 +56,7 @@ namespace Ewide.Test
|
|||||||
, Encoding.UTF8, "application/json"));
|
, Encoding.UTF8, "application/json"));
|
||||||
var body = await response.Content.ReadAsStringAsync();
|
var body = await response.Content.ReadAsStringAsync();
|
||||||
_output.WriteLine($"body {body}");
|
_output.WriteLine($"body {body}");
|
||||||
var result = JsonConvert.DeserializeObject<XnRestfulResult<string>>(body);
|
var result = JsonConvert.DeserializeObject<RestfulResult<string>>(body);
|
||||||
Assert.Equal(code, result.Code);
|
Assert.Equal(code, result.Code);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -78,7 +78,7 @@ namespace Ewide.Test
|
|||||||
, Encoding.UTF8, "application/json"));
|
, Encoding.UTF8, "application/json"));
|
||||||
var body = await response.Content.ReadAsStringAsync();
|
var body = await response.Content.ReadAsStringAsync();
|
||||||
_output.WriteLine($"body {body}");
|
_output.WriteLine($"body {body}");
|
||||||
var result = JsonConvert.DeserializeObject<XnRestfulResult<string>>(body);
|
var result = JsonConvert.DeserializeObject<RestfulResult<string>>(body);
|
||||||
if (!result.Success)
|
if (!result.Success)
|
||||||
{
|
{
|
||||||
throw new ArgumentException("»ñÈ¡AccessTokenʧ°Ü");
|
throw new ArgumentException("»ñÈ¡AccessTokenʧ°Ü");
|
||||||
|
|||||||
Reference in New Issue
Block a user