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 IActionResult DeleteUser(int id) { var vm = userRoleServices.GetUserById(id); return(View(vm)); }