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