Skip to content

Commit 5fb024a

Browse files
committed
Fix test type mismatch and add GitHub Actions workflow
1 parent 361cff7 commit 5fb024a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

StudentServiceTests/Admin/AdminUserManageControllerTests.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using Microsoft.AspNetCore.Identity;
1+
 using Microsoft.AspNetCore.Identity;
22
using Microsoft.AspNetCore.Mvc;
33
using Moq;
44
using StudentManagementSystem.Areas.Admin.Controllers;
@@ -9,15 +9,15 @@ namespace Tests.Admin
99
[TestFixture]
1010
public class AdminUserManageControllerTests
1111
{
12-
private Mock<RoleManager<IdentityRole>> roleManagerMock;
12+
private Mock<RoleManager<IdentityRole<string>>> roleManagerMock;
1313
private Mock<UserManager<IdentityUser>> userManagerMock;
1414
private AdminUserManageController controller;
1515

1616
[SetUp]
1717
public void SetUp()
1818
{
19-
var roleStore = new Mock<IRoleStore<IdentityRole>>();
20-
roleManagerMock = new Mock<RoleManager<IdentityRole>>(roleStore.Object, null, null, null, null);
19+
var roleStore = new Mock<IRoleStore<IdentityRole<string>>>();
20+
roleManagerMock = new Mock<RoleManager<IdentityRole<string>>>(roleStore.Object, null, null, null, null);
2121

2222
var userStore = new Mock<IUserStore<IdentityUser>>();
2323
userManagerMock = new Mock<UserManager<IdentityUser>>(userStore.Object, null, null, null, null, null, null, null, null);

0 commit comments

Comments
 (0)