/// <summary> /// Initializes a new instance of the OxcropsClient class. /// </summary> /// <param name="mapiContext">The Mapi Context</param> public OxcropsClient(MapiContext mapiContext) { if (mapiContext == null) { throw new ArgumentNullException("mapiContext should not be null"); } this.RegisterROPDeserializer(); this.MapiContext = mapiContext; this.site = mapiContext.TestSite; switch (mapiContext.TransportSequence.ToLower()) { case "mapi_http": this.mapiHttpAdapter = new MapiHttpAdapter(this.site); break; case "ncacn_ip_tcp": case "ncacn_http": this.rpcAdapter = new RpcAdapter(this.site); break; default: this.site.Assert.Fail("TransportSeq \"{0}\" is not supported by the test suite."); break; } }