mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-06-06 03:55:55 +00:00
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:
committed by
Ryan Gribble
parent
596e51d5b3
commit
f6154dac9f
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user