public void RequestsCorrectUrl() { var connection = Substitute.For<IApiConnection>(); var client = new GistsClient(connection); client.Fork("1"); connection.Received().Post<Gist>(Arg.Is<Uri>(u => u.ToString() == "gists/1/forks"), Arg.Any<object>()); }