@@ -656,7 +656,7 @@ namespace Hotline.Api.Controllers
public async Task<Dictionary<string, dynamic>> GetKnowretrievalBaseData()
{
return _baseDataApplication
- .KnowledgeRetrievalType([3, 4])
+ .KnowledgeRetrievalType(new[]{3, 4})
.Build();
}
@@ -16,7 +16,7 @@ public static class TestSessionConstants
public static string OpenId = "";
- public static string[] Roles = [];
+ public static string[] Roles = Array.Empty<string>();
public static string UserName = "";
@@ -65,9 +65,9 @@ public class TestBase
Name = name,
OrgId = orgId,
PhoneNo = phoneNo,
- RoleIds = [roleId],
+ RoleIds = new[] { roleId },
UserType = userType,
- UserName = userName
+ UserName = userName
};
var accountId = await _userController.Add(newUser);
TestSessionConstants.UserId = accountId;