mirror of
https://github.com/ckaczor/sqltoolsservice.git
synced 2026-01-17 01:25:40 -05:00
User management support classes (#1856)
* WIP * Fix nullable warnings in UserData class * WIP2 * WIP * Refresh database prototype classes * Fix some typos & merge issues * WIP * WIP * WIP * Additional updates * Remove unneded using
This commit is contained in:
@@ -47,6 +47,23 @@ namespace Microsoft.SqlTools.ServiceLayer.IntegrationTests.Security
|
||||
};
|
||||
}
|
||||
|
||||
internal static UserInfo GetTestUserInfo(string loginName)
|
||||
{
|
||||
return new UserInfo()
|
||||
{
|
||||
Type = DatabaseUserType.UserWithLogin,
|
||||
UserName = "TestUserName_" + new Random().NextInt64(10000000,90000000).ToString(),
|
||||
LoginName = loginName,
|
||||
Password = "placeholder",
|
||||
DefaultSchema = "dbo",
|
||||
OwnedSchemas = new string[] { "dbo" },
|
||||
isEnabled = false,
|
||||
isAAD = false,
|
||||
ExtendedProperties = null,
|
||||
SecurablePermissions = null
|
||||
};
|
||||
}
|
||||
|
||||
internal static CredentialInfo GetTestCredentialInfo()
|
||||
{
|
||||
return new CredentialInfo()
|
||||
|
||||
Reference in New Issue
Block a user