/// <summary> /// Run simple HTTP200 test case with empty entityResponse. /// </summary> /// <param name="testCase"></param> /// <param name="inlineAssertation"></param> protected void RunHttp200WithEmptyResponseBetaEndpoint(Action <ExchangeService> testCase, Action <HttpRequestMessage> inlineAssertation) { MockTestRunner.RunHttp200TestCase( testCase, "*****@*****.**", new HttpResponseMessage(HttpStatusCode.OK) { Content = new StringContent("{}") }, inlineAssertation); }
/// <summary> /// Run simple HTTP200 test case with custom content. /// </summary> /// <param name="testcase"></param> /// <param name="customResponse"></param> /// <param name="inlineAssertation"></param> protected void RunHttp200WithCustomResponseProdEndpoint(Action <ExchangeService> testcase, Func <string> customResponse, Action <HttpRequestMessage> inlineAssertation) { MockTestRunner.RunHttp200TestCase( testcase, "*****@*****.**", new HttpResponseMessage(HttpStatusCode.OK) { Content = new StringContent(customResponse()) }, inlineAssertation, Environment.Prod); }