public async Task ListSchemaObjects() { using (TestServiceDriverProvider testService = new TestServiceDriverProvider()) using (SelfCleaningTempFile tempFile = new SelfCleaningTempFile()) { ScriptingListObjectsParams requestParams = new ScriptingListObjectsParams { ConnectionString = this.Northwind.ConnectionString, }; ScriptingListObjectsResult result = await testService.ListScriptingObjects(requestParams); ScriptingListObjectsCompleteParams completeParameters = await testService.Driver.WaitForEvent(ScriptingListObjectsCompleteEvent.Type, TimeSpan.FromSeconds(30)); Assert.Equal <int>(ScriptingFixture.ObjectCountWithoutDatabase, completeParameters.ScriptingObjects.Count); } }