public async void GetUser() { mock.Setup(p => p.GetUserById(1)); UserRoleIdentityServices service = new UserRoleIdentityServices(userManager, signInManager, roleManager, context); var result = service.GetUserById(1); Assert.Equal("Local", result.FirstName); }
public DevicesController(DeviceServices deviceServices, CategoryServices categoryServices, UserManager <User> userManager, UserRoleIdentityServices userRoleIdentityServices) { _userRoleIdentityServices = userRoleIdentityServices; _deviceServices = deviceServices; _categoryServices = categoryServices; _userManager = userManager; }
public AdministrationController(UserManager <User> _userManager, SignInManager <User> _signInManager, RoleManager <Role> _roleManager, UserRoleIdentityServices _userRoleServices) { userManager = _userManager; roleManager = _roleManager; signInManager = _signInManager; userRoleServices = _userRoleServices; }
public NetworkDevicesController(NetworkDeviceServices networkDeviceServices, CategoryServices categoryServices, UserManager <User> userManager, UserRoleIdentityServices userRoleIdentityServices) { _userRoleIdentityServices = userRoleIdentityServices; _networkDeviceServices = networkDeviceServices; _categoryServices = categoryServices; _userManager = userManager; }