public CoursesBL(IUnitOfWork _unitOfWork, IMapper _mapper, IUsersBL _usersBL) { unitOfWork = _unitOfWork; CourseRepository = new CourseRepository(unitOfWork); usersBL = _usersBL; mapper = _mapper; }
public ProvidersBL(IUnitOfWork _unitOfWork, IMapper _mapper, IUsersBL _usersBL) { unitOfWork = _unitOfWork; providerRepository = new ProviderRepository(unitOfWork); usersBL = _usersBL; mapper = _mapper; }
public ChatHub( IUsersBL usersBL, IRoomsBL roomsBL, IHttpContextAccessor accessor) { this.roomsBL = roomsBL; this.usersBL = usersBL; this.user = usersBL.GetAuthenticatedUser(accessor.HttpContext.User); }
public ProvidersController(IConfiguration _configuration, IUsersBL _usersBL, IProvidersBL _providersBL, ISetupBL _setupBL) { usersBL = _usersBL; setupBL = _setupBL; providersBL = _providersBL; configuration = _configuration; }
public SettingsController( IUsersBL _usersBL, IProvidersBL _providersBL, IWebHostEnvironment _hostingEnvironment, ISetupBL _setupBL) { usersBL = _usersBL; setupBL = _setupBL; providersBL = _providersBL; textInfo = new CultureInfo("en-US", false).TextInfo; hostingEnvironment = _hostingEnvironment; }
public AccountController(IConfiguration _configuration, IUsersBL _usersBL, IProvidersBL _providersBL, ICoursesBL _coursesBL, IUtilities _utilities, IAuthenticateService _authentication, ISetupBL _setupBL) { usersBL = _usersBL; setupBL = _setupBL; coursesBL = _coursesBL; providersBL = _providersBL; configuration = _configuration; utilities = _utilities; authentication = _authentication; }
public MethodResult <UserAuth> Execute(IUsersBL userBL) { try { var taken = userBL.NicknameTaken(Nickname); if (taken) { return(new MethodResult <UserAuth>(HttpStatusCode.Forbidden)); } return(new MethodResult <UserAuth>(HttpStatusCode.OK, userBL.Add(Nickname, Avatar))); } catch (Exception) { // Mail or Log Handler.... return(new MethodResult <UserAuth>(HttpStatusCode.InternalServerError)); } }
public AuthController(IUsersBL userBL) { this.userBL = userBL; }
public UsersController(IUsersBL usersBL, IHostingEnvironment hostingEnvironment, IModelMetadataProvider modelMetadataProvider, SiteConfiguration siteConfiguration) : base(hostingEnvironment, modelMetadataProvider, siteConfiguration) { _usersBL = usersBL; }
public HomeController(IUsersBL usersBL) { _usersBL = usersBL; }
public UserController(IUsersBL _repo) { this.repo = _repo; }
public AccountController(IUsersBL user, ILogsBL logbl) { //_user = user; _user = new UsersBL(System.Web.HttpContext.Current.GetOwinContext().Get <Core.Domain.InfraEntities>(), logbl); }
public UserController(IUsersBL userBL) { _userBL = userBL; }
public AccountsController(IUsersBL bl) { _bl = bl; }
/// <summary> /// Constructor /// </summary> public UsersController() { _userBL = new UsersBL(); }
public void TestTearDown() { userBL = null; userController = null; }
public void TestSetUp() { userBL = new MockUserBL(); userController = new UsersController(userBL); }
public UsersController(IUsersBL bl) { _bl = bl; }
public ChatRoom(IUsersBL usersBL, IRoomsBL roomsBL, UserAuth user, string guestId) { Owner = usersBL.ShareUserConnections().FirstOrDefault(row => row.Nickname == user.Nickname); Guest = usersBL.ShareUserConnections().FirstOrDefault(row => row.ConnectionId == guestId); Name = roomsBL.GetNameFromConnections(Owner.ConnectionId, Guest.ConnectionId); }