Codeunit 132975 SharePoint Graph Test Library

System Application Test Library, System.Test.Integration.Sharepoint

Source AL, 126 lines

src/System Application/Test Library/SharePoint/src/graph/SharePointGraphTestLibrary.Codeunit.allines 10 to 25 of 126, Copyright (c) Microsoft Corporation. MIT

codeunit 132975 "SharePoint Graph Test Library"{    InherentEntitlements = X;    InherentPermissions = X;    var        MockHttpClientHandler: Codeunit "SharePoint Http Client Handler";    /// <summary>    /// Sets a single mock response that is returned for every request.    /// Clears any responses queued with AddMockResponse and the recorded request history.    /// Use this when all requests in the test should get the same response;    /// use AddMockResponse to return different responses for consecutive requests.    /// </summary>    /// <param name="NewHttpResponseMessage">The response to return for every request.</param>    procedure SetMockResponse(var NewHttpResponseMessage: Codeunit "Http Response Message")

All 126 lines

Public procedures 10 in 29

SetMockResponse(var NewHttpResponseMessage: Codeunit "Http Response Message")new in 28
GetHttpRequestMessage(var OutHttpRequestMessage: Codeunit "Http Request Message")new in 28
ExpectRequestToFailWithError(ErrorText: Text)new in 28
ResetMockHandler()new in 28
GetMockHandler(): Interface "Http Client Handler"new in 28
AddMockResponse(StatusCode: Integer; ResponseBody: Text)new in 29

All 10 procedures

Changes 5 in 29

List17181920212223242526272829
Procedures5
AddMockResponse(StatusCode: Integer; ResponseBody: Text)new in 29
added
AddMockResponse(var NewHttpResponseMessage: Codeunit "Http Response Message")new in 29
added
GetMockHttpRequestUri(Index: Integer): Textnew in 29
added
GetMockHttpRequestMethod(Index: Integer): Textnew in 29
added
GetMockRequestCount(): Integernew in 29
added

All 5 changes in 28-29