public async Task SetAutoAttachSettingsAsync(DebugAutoAttachSettings autoAttachSettings) { var requestParameters = new RequestParameters("setAutoAttachSettings"); var request = Context.NewSessionRequest <RDBGSetAutoAttachSettingsRequest>(); request.AutoAttachSettings = autoAttachSettings; await Executor.ExecuteAsync <RDBGEmptyResponse>(request, requestParameters); //Logger.LogDebug("SetAutoAttachSettings successful"); }
public async Task TestSetAutoAttachSettingsAsync() { // given var response = new RDBGEmptyResponse(); var messageHandler = new MockHttpMessageHandler(); messageHandler.Enqueue(HttpStatusCode.OK, response); var manager = Create(messageHandler); var autoAttachSettings = new DebugAutoAttachSettings(); // when await manager.SetAutoAttachSettingsAsync(autoAttachSettings); // then var request = messageHandler.Dequeue(); Assert.AreEqual("http://localhost/e1crdbg/rdbg?cmd=setAutoAttachSettings", request.RequestUri.ToString()); }