public void RequestsTheCorrectlUrl() { var connection = Substitute.For<IApiConnection>(); var client = new TeamsClient(connection); client.Get(1); connection.Received().Get<Team>(Arg.Is<Uri>(u => u.ToString() == "teams/1"), null); }
public void RequestsTheCorrectlUrl() { var connection = Substitute.For <IApiConnection>(); var client = new TeamsClient(connection); client.Get(1); connection.Received().Get <Team>(Arg.Is <Uri>(u => u.ToString() == "teams/1"), null); }
public void RequestsTheCorrectUrl() { var connection = Substitute.For <IApiConnection>(); var client = new TeamsClient(connection); client.Get(1); connection.Received().Get <Team>( Arg.Is <Uri>(u => u.ToString() == "teams/1"), null, "application/vnd.github.hellcat-preview+json"); }