private ViewUsersController GetTarget() { var result = new ViewUsersController(null, null, _userService.Object, _bus.Object, _newRegistrationRequestService.Object, _businessSafeSessionManager.Object, null); TestControllerHelpers.AddUserToController(result); return result; }
private ViewUsersController CreateUserSearchController() { var sessionManager = new Mock<IBusinessSafeSessionManager>(); var session = new Mock<ISession>(); sessionManager.SetupGet(x => x.Session).Returns(session.Object); var result = new ViewUsersController(_userSearchViewModelFactory.Object, _viewUserViewModelFactory.Object, _userService.Object, null, new Mock<INewRegistrationRequestService>().Object, sessionManager.Object, null); TestControllerHelpers.AddUserToController(result); return result; }
private ViewUsersController CreateUserSearchController() { var result = new ViewUsersController(null, null, _userService.Object, _bus.Object, new Mock<INewRegistrationRequestService>().Object, null, null); return TestControllerHelpers.AddUserToController(result); }