mirror of
https://github.com/ckaczor/sqltoolsservice.git
synced 2026-01-26 09:35:38 -05:00
Get Database Info (#370)
* added get database info to admin service * refactored code to be inline with standard * added comments to utils functions * added comments to public classes * removed camelcase from request type * removed the wrapper for the generic dictionary * removed unnecessary imports
This commit is contained in:
@@ -85,5 +85,25 @@ namespace Microsoft.SqlTools.ServiceLayer.IntegrationTests.AdminServices
|
||||
requestContext.VerifyAll();
|
||||
}
|
||||
|
||||
/// <summmary>
|
||||
/// Get database info test
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public async void GetDatabaseInfoTest()
|
||||
{
|
||||
var results = GetLiveAutoCompleteTestObjects();
|
||||
var requestContext = new Mock<RequestContext<GetDatabaseInfoResponse>>();
|
||||
requestContext.Setup(x => x.SendResult(It.IsAny<GetDatabaseInfoResponse>())).Returns(Task.FromResult(new object()));
|
||||
|
||||
var dbParams = new GetDatabaseInfoParams
|
||||
{
|
||||
OwnerUri = results.ConnectionInfo.OwnerUri
|
||||
};
|
||||
|
||||
await AdminService.HandleGetDatabaseInfoRequest(dbParams, requestContext.Object);
|
||||
|
||||
requestContext.VerifyAll();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user