//for tests public OfficeController( OfficeLocationFacade officeLocationFacade, IUserWrapper userWrapper) { _officeLocationFacade = officeLocationFacade; _userWrapper = userWrapper; }
public DashboardController(ICourseService courseService, IUserService userService, IUserWrapper userWrapper) { // this.userManager = userManager; this.courseService = courseService; this.userService = userService; this.userWrapper = userWrapper; }
public WalletController (IWalletService walletService, IUserWrapper userWrapper, ICardService cardService, ITransactionService transactionService) { this.walletService = walletService; this.userWrapper = userWrapper; this.cardService = cardService; this.transactionService = transactionService; }
//Utility starts here private WalletController ControllerSetup (IWalletService walletService, IUserWrapper userWrapper, ICardService cardService, ITransactionService transactionService) { var controller = new WalletController (walletService, userWrapper, cardService, transactionService) { ControllerContext = new ControllerContext() { HttpContext = new DefaultHttpContext() { User = new ClaimsPrincipal() } }, TempData = new Mock <ITempDataDictionary>().Object }; return(controller); }
//Utility starts here private GameController ControllerSetup (IGameService gameService, ITransactionService transactionService, IUserWrapper userWrapper) { var defaultContext = new DefaultHttpContext() { User = new ClaimsPrincipal() }; var controller = new GameController (gameService, transactionService, userWrapper) { ControllerContext = new ControllerContext() { HttpContext = defaultContext }, TempData = new TempDataDictionary(defaultContext, new Mock <ITempDataProvider>().Object) }; return(controller); }
public static bool IsInAdminGroup( this IUserWrapper user) { return(user.IsInGroup(user.GroupNameConstants.AdminGroup)); }
public OfficeController() { _officeLocationFacade = MasterFactory.GetOfficeLocationFacade(); _userWrapper = new UserWrapper(MasterFactory.GroupNameConstants); }
public TodoItemService(AppDbContext context, IUserWrapper userWrapper) { _context = context; _userWrapper = userWrapper; }
public UserNormalizedBalanceWarningViewComponent(IUserWrapper userManager, IUserService userService, ICurrencyRateApiService ratesService) { this.userManager = userManager; this.userService = userService; this.ratesService = ratesService; }
public AdminMenuViewComponent(SignInManager <User> signInManager, IUserWrapper userManager, IUserService userService) { this.signInManager = signInManager; this.userManager = userManager; this.userService = userService; }
public GameController(IGameService gameService, ITransactionService transactionService, IUserWrapper userWrapper) { this.gameService = gameService; this.transactionService = transactionService; this.userWrapper = userWrapper; }