public async Task TestHandleDeleteAgentOperatorRequest() { using (SelfCleaningTempFile queryTempFile = new SelfCleaningTempFile()) { // setup var service = new AgentService(); var operatorInfo = AgentTestUtils.GetTestOperatorInfo(); var connectionResult = await LiveConnectionHelper.InitLiveConnectionInfoAsync("master", queryTempFile.FilePath); await AgentTestUtils.DeleteAgentOperator(service, connectionResult, operatorInfo); await AgentTestUtils.CreateAgentOperator(service, connectionResult, operatorInfo); // test await AgentTestUtils.DeleteAgentOperator(service, connectionResult, operatorInfo); } }