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