Skip to content

Commit

Permalink
update to netcore.app 1.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
lvermeulen committed Sep 25, 2016
1 parent eba5b50 commit bb8eba7
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 9 deletions.
2 changes: 1 addition & 1 deletion global.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"projects": [ "src", "test" ],
"sdk": { "version": "1.0.0-preview2-003121" }
"sdk": { "version": "1.0.0-preview2-003131" }
}
2 changes: 1 addition & 1 deletion src/Flurl.Http.Xml/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
},

"dependencies": {
"Flurl.Http": "1.0.0"
"Flurl.Http": "1.0.3"
},

"frameworks": {
Expand Down
5 changes: 2 additions & 3 deletions test/Flurl.Http.Xml.Tests/MicrosoftXmlSerializerShould.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public class MicrosoftXmlSerializerShould

const string XML_WITH_DECLARATION = @"<?xml version=""1.0"" encoding=""utf-8""?>" + "\r\n" + XML_WITHOUT_DECLARATION;

private MicrosoftXmlSerializer _serializer;
private readonly MicrosoftXmlSerializer _serializer;

public MicrosoftXmlSerializerShould()
{
Expand All @@ -27,8 +27,7 @@ public MicrosoftXmlSerializerShould()
public void Serialize()
{
var model = new TestModel { Number = 3, Text = "Test" };
string s = _serializer.Serialize(model);
model = _serializer.Deserialize<TestModel>(s);
model = _serializer.Deserialize<TestModel>(_serializer.Serialize(model));

Assert.Equal(3, model.Number);
Assert.Equal("Test", model.Text);
Expand Down
6 changes: 4 additions & 2 deletions test/Flurl.Http.Xml.Tests/RealHttpTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ public async Task GetXDocument()
[Fact]
public async Task PostXmlToModel()
{
var result = await "http://putsreq.com/JMG62khbf6IWRR8Bz9nU"
// outsreq set up with response builder: response.body = request.body
var result = await "http://putsreq.com/icFb09Wa6dAtW0DHSEm1"
.PostXmlAsync(new TestModel { Number = 3, Text = "Test" })
.ReceiveXml<TestModel>();

Expand All @@ -44,7 +45,8 @@ public async Task PostXmlToModel()
[Fact]
public async Task PostXmlToXDocument()
{
var result = await "http://putsreq.com/JMG62khbf6IWRR8Bz9nU"
// outsreq set up with response builder: response.body = request.body
var result = await "http://putsreq.com/icFb09Wa6dAtW0DHSEm1"
.PostXmlAsync(new TestModel {Number = 3, Text = "Test"})
.ReceiveXDocument();

Expand Down
4 changes: 2 additions & 2 deletions test/Flurl.Http.Xml.Tests/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"dotnet-test-xunit": "2.2.0-preview2-build1029",
"Flurl.Http.Xml": { "target": "project" },
"OpenCover": "4.6.519",
"xunit": "2.1.0"
"xunit": "2.2.0-beta2-build3300"
},

"frameworks": {
Expand All @@ -16,7 +16,7 @@
"dependencies": {
"Microsoft.NETCore.App": {
"type": "platform",
"version": "1.0.0"
"version": "1.0.1"
}
}
}
Expand Down

0 comments on commit bb8eba7

Please sign in to comment.