bugfix - PUT should have a payload for Mark as Read (#1579)

* bugfix - PUT should have a payload for Mark as Read

* also fix the Observable client test

* add integration tests for MarkRead methods

* Fixup MarkReadForRepository methods to specify a body in the PUT request

* Fix unit tests for regular and observable client

* helps if the new files are included in the test project :)
This commit is contained in:
Brendan Forster
2017-04-13 18:04:04 +10:00
committed by Ryan Gribble
parent 596e51d5b3
commit f6154dac9f
6 changed files with 95 additions and 9 deletions
@@ -302,7 +302,7 @@ namespace Octokit.Tests.Reactive
client.MarkAsRead();
connection.Received().Put(endpoint);
connection.Received().Put<object>(endpoint, Args.Object);
}
}
@@ -318,7 +318,7 @@ namespace Octokit.Tests.Reactive
client.MarkAsReadForRepository("banana", "split");
connection.Received().Put(endpoint);
connection.Received().Put<object>(endpoint, Args.Object);
}
[Fact]
@@ -331,7 +331,7 @@ namespace Octokit.Tests.Reactive
client.MarkAsReadForRepository(1);
connection.Received().Put(endpoint);
connection.Received().Put<object>(endpoint, Args.Object);
}
[Fact]