public async Task RequestsCorrectUrl() { var connection = Substitute.For<IApiConnection>(); var client = new IssuesLabelsClient(connection); await client.GetForRepository("fake", "repo"); connection.Received().GetAll<Label>(Arg.Is<Uri>(u => u.ToString() == "repos/fake/repo/labels")); }
public async Task RequestsCorrectUrl() { var connection = Substitute.For <IApiConnection>(); var client = new IssuesLabelsClient(connection); await client.GetForRepository("fake", "repo"); connection.Received().GetAll <Label>(Arg.Is <Uri>(u => u.ToString() == "repos/fake/repo/labels")); }