Skip to content

Commit

Permalink
Updated libraries.
Browse files Browse the repository at this point in the history
Updated Flurl to latest version (fixed breaking changes)
  • Loading branch information
morrisonbrett committed Jul 22, 2016
1 parent b12c708 commit 858d94b
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 13 deletions.
8 changes: 4 additions & 4 deletions BlackVueDownloader.PCL/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
"description": "BlackVueDownloader Library - Video file Dashcam Downloader services layer",
"version": "1.0.0-*",
"dependencies": {
"Flurl.Http": "0.10.1",
"NETStandard.Library": "1.6.0-rc4-24207-03",
"Newtonsoft.Json": "9.0.1-beta1",
"System.Runtime.Serialization.Primitives": "4.1.1-rc4-24207-03"
"Flurl.Http": "1.0.0",
"NETStandard.Library": "1.6.0",
"Newtonsoft.Json": "9.0.1",
"System.Runtime.Serialization.Primitives": "4.1.1"
},
"frameworks": {
"netcoreapp1.0": {
Expand Down
12 changes: 6 additions & 6 deletions BlackVueDownloader.Tests/BlackVueDownloaderTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public void QueryCameraForFileListTest(string ip)

using (var httpTest = new HttpTest())
{
httpTest.RespondWith(200, "this is the body");
httpTest.RespondWith("this is the body");

var body = blackVueDownloader.QueryCameraForFileList(ip);

Expand All @@ -91,7 +91,7 @@ public void EmptyResponseTest(string ip)

using (var httpTest = new HttpTest())
{
httpTest.RespondWith(200, "");
httpTest.RespondWith("");

var body = blackVueDownloader.QueryCameraForFileList(ip);

Expand All @@ -109,7 +109,7 @@ public void InvalidResponseTest(string ip)

using (var httpTest = new HttpTest())
{
httpTest.RespondWith(500, "Simulated Error");
httpTest.RespondWith("Simulated Error", 500);

try
{
Expand Down Expand Up @@ -155,7 +155,7 @@ public void CameraRespondValidTest(string ip, int numRecords)

using (var httpTest = new HttpTest())
{
httpTest.RespondWith(200, GenerateRecords(numRecords));
httpTest.RespondWith(GenerateRecords(numRecords));

var body = blackVueDownloader.QueryCameraForFileList(ip);

Expand Down Expand Up @@ -186,7 +186,7 @@ public void GetListOfFilesAndProcessTest(string ip, int numRecords)
// Success test
for (var i = 0; i < numRecords*4; i++)
{
httpTest.RespondWith(200, "OK");
httpTest.RespondWith("OK");
}
blackVueDownloader.BlackVueDownloaderCopyStats.Clear();
blackVueDownloader.ProcessList(ip, Directory.GetCurrentDirectory(), list);
Expand All @@ -205,7 +205,7 @@ public void GetListOfFilesAndProcessTest(string ip, int numRecords)
// Fail test
for (var i = 0; i < numRecords*4; i++)
{
httpTest.RespondWith(500, "FAILURE");
httpTest.RespondWith("FAILURE", 500);
}
blackVueDownloader.BlackVueDownloaderCopyStats.Clear();
blackVueDownloader.ProcessList(ip, Directory.GetCurrentDirectory(), list);
Expand Down
5 changes: 2 additions & 3 deletions BlackVueDownloader.Tests/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"target": "project",
"version": "1.0.0-*"
},
"Flurl.Http": "0.10.1",
"Flurl.Http": "1.0.0",
"moq.netcore": "4.4.0-beta8",
"xunit.runner.console": "2.2.0-beta2-build3300",
"xunit.runner.visualstudio": "2.2.0-beta2-build1149",
Expand All @@ -14,8 +14,7 @@
"Microsoft.NETCore.App": "1.0.1-beta-000547-00",
"Microsoft.Win32.Primitives": "4.0.2-beta-24302-03",
"System.Collections.Concurrent": "4.0.13-beta-24302-03",
"System.Diagnostics.TraceSource": "4.0.0-rc4-24207-03"
},
"System.Diagnostics.TraceSource": "4.0.0" },
"testRunner": "xunit",
"frameworks": {
"netcoreapp1.0": {
Expand Down

0 comments on commit 858d94b

Please sign in to comment.