//--- Constructors --- public SeatingBL(IUserBL userBL, ILicenseBL licenseBL, ICurrentUserContext userContext, IDekiDataSession dataSession, ILog log) { _userBL = userBL; _licenseBL = licenseBL; _log = log; _userContext = userContext; _dataSession = dataSession; }
public HomeController(ILogger <HomeController> logger, IUserBL userbl, IWebHostEnvironment env, IFileProvider fileProvider) { _logger = logger; _userBL = userbl; _env = env; dist = fileProvider; }
public DistributorController(IFoodBL productBL, IMapper mapper, IUserBL userBL, IFoodDataBL foodDataBL, ITransactionBL transactionBL) { _mapper = mapper; _foodBL = productBL; _foodDataBL = foodDataBL; _transactionBL = transactionBL; _userBL = userBL; }
public UserController(UserManager <UserBE> userManager, SignInManager <UserBE> signManager, IUserDA userData, ILogError logError) { _logError = logError; _userData = userData; _signManager = signManager; _userManager = userManager; _userBL = new UserBL(_userData, _logError); }
public OrderController() { packageBL = new PackageBL(); itineraryBL = new ItineraryBL(); orderBL = new OrderBL(); userBL = new AccountBL(); //var UserId = System.Web.HttpContext.Current.User.Identity.GetUserId(); }
public CompositionController(IUserBL userBL, IWorkBL workBL, IGenreBL genreBL, IRatingBL ratingBL, ICommentBL commentBL) { this.userBL = userBL; this.workBL = workBL; this.genreBL = genreBL; this.ratingBL = ratingBL; this.commentBL = commentBL; }
public UserController(IUserBL dataRepository, IConfiguration config, UserContext userContext, IEmailSender emailSender) { _userBL = dataRepository; _secret = config.GetSection("Jwt").GetSection("Key").Value; _issuer = config.GetSection("Jwt").GetSection("Issuer").Value; _user = userContext; this.emailSender = emailSender; }
public HomeController(IUserBL userBL, IWorkBL workBL, IGenreBL genreBL, IRatingBL ratingBL, ICommentBL commentBL) { this._userBL = userBL; this._workBL = workBL; this._genreBL = genreBL; this._ratingBL = ratingBL; this._commentBL = commentBL; }
public UsersController(ILog logger, ApplicationUserManager appUserManager, IUserBL userBL, IRoleBL roleBL) : base(logger) { _logger = logger; _appUserManager = appUserManager; _userBL = userBL; _roleBL = roleBL; }
public RegistrationController(IHttpClientFactory httpClientFactory, GabDbContext db, IUserBL userbl, INotificationClient notificationClient, ILogger <RegistrationController> logger) { _notificationClient = notificationClient; _httpClientFactory = httpClientFactory; _db = db; _userbl = userbl; _logger = logger; }
//--- Constructors --- public YubyCryptService(IChallengeBL challengeBL, IUserBL userBL, IEncryptionBL encryptionBL) { _challengeBL = challengeBL; _userBL = userBL; _encryptionBL = encryptionBL; initRoutes(); StaticConfiguration.DisableErrorTraces = false; }
public AuthController(IUserBL userBL, IUnitOfWorkFactory unitOfWorkFactory, MovieSearchDbContext movieSearchDbContext) { this.userBL = userBL; this.unitOfWorkFactory = unitOfWorkFactory; SeedData.Initialize(movieSearchDbContext); }
public UserBLTests() { // Arrange var container = new UnityContainer(); IOCRegistration.Register(container); this.userBL = container.Resolve <IUserBL>(); }
public UnitTest1() { var context = new Application(User); _reposLayeruser = new UserRL(context); _reposLayerParking = new ParkingRL(context); _businessLayeruser = new UserBL(_reposLayeruser); _businessLayerparking = new ParkingBL(_reposLayerParking); }
public UsersController(IUserBL userBL, IConfiguration configuration, IOptions <AppSetting> appSettings) { this.userBL = userBL; Configuration = configuration; { _appSettings = appSettings.Value; } }
public ManagerController( IUserBL userBL, IMapper mapper, IEmailSender mailSender) { _userBL = userBL; _mapper = mapper; _mailSender = mailSender; }
//--- Constructors --- public LicenseManager(ILicenseController licenseController, IUserBL userBL, LicenseData licenseData, ILicenseBL licenseBL, IInstanceSettings settings, ISeatingBL seatingBL, LicenseStateTransitionCallback licenseStateTransitionCallback) { _licenseController = licenseController; _userBL = userBL; _licenseData = licenseData; _licenseBL = licenseBL; _settings = settings; _seatingBL = seatingBL; _licenseStateTransitionCallback = licenseStateTransitionCallback; }
static DependencyResolver() { userDAO = new UserDAO(); orderDAO = new OrderDAO(); productDAO = new ProductDAO(); userBL = new UserBL(userDAO); orderBL = new OrderBL(orderDAO); productBL = new ProductBL(productDAO); }
public UserTestCases() { IConfigurationBuilder configurationBuilder = new ConfigurationBuilder(); configurationBuilder.AddJsonFile("appsettings.json"); this.configuration = configurationBuilder.Build(); this.userRL = new UserRL(this.configuration); this.userBL = new UserBL(this.userRL); this.userController = new UserController(this.userBL, configuration); }
/// <summary> /// Default constructor used to create new objects /// </summary> public UserTestCases() { IConfigurationBuilder configurationBuilder = new ConfigurationBuilder(); configurationBuilder.AddJsonFile("appsettings.json"); this.configuration = configurationBuilder.Build(); userRepository = new UserRL(); userBuiseness = new UserBL(userRepository); userController = new UserController(userBuiseness, configuration); }
public UserUnitTesting() { IConfigurationBuilder builder = new ConfigurationBuilder(); builder.AddJsonFile(@"D:\FundooProject\FundooNotes\XUnitTestFundooNotes\appsetting.json"); configuration = builder.Build(); var context = new UserContext(DbContext); userRL = new UserRL(context); userBL = new UserBL(userRL); }
public BaseUserController(IUserBL userBL) : base() { this.userBL = userBL; currentUser = new Lazy <User>(() => { if (CurrentUserId == null) { return(null); } return(userBL.GetById(CurrentUserId.Value)); }); }
public FlightController(IFlightDA flightData, IAirPortDA airportData, IAirCraftDA aircraftData, IUserDA userData, ILogError logError) { _logError = logError; _flightData = flightData; _airportData = airportData; _aircraftData = aircraftData; _userData = userData; _flightBL = new FlightBL(_flightData, _logError); _airportBL = new AirPortBL(_airportData, _logError); _aircraftBL = new AirCraftBL(_aircraftData, _logError); _userBL = new UserBL(_userData, _logError); }
//Constructor public ParkingLotTestCase() { var context = new ParkingLotDbContext(dbContextOptions); _IVehicalParkingDetailsRL = new VehicalParkingDetailsRL(context); _IVehicalParkingDetailsBL = new VehicalParkingDetailsBL(_IVehicalParkingDetailsRL); _IUserRL = new UserRL(context); _IUserBL = new UserBL(_IUserRL); parkingController = new ParkingController(_IVehicalParkingDetailsBL, distributedCache); userController = new UserController(_IUserBL, configuration); }
public void Setup(BenchmarkContext context) { IUserDataLayer _userRepo = new UserDataLayer(); IProjectDataLayer _projectRepo = new ProjectDataLayer(); ITaskDataLayer _taskRepo = new TaskDataLayer(); _userService = new UserBL(_userRepo); _projectService = new ProjectBL(_projectRepo); _taskService = new TaskBL(_taskRepo); _newTask = new TaskEntity { TaskName = "Perf Test Task", ParentId = 1, Priority = 10, StartDate = "11/01/2018", EndDate = "11/11/2018", ProjectId = 2, UserId = 1234567 }; }
public UserController(IUserBL UserBL, IRoleBL RoleBL, IMapper mapper, IEmailSender mailSender, IPremisesBL premisesBL, IPremisesTypeBL premisesTypeBL ) { _roleBl = RoleBL; _userBL = UserBL; _mapper = mapper; _premisesBL = premisesBL; _premisesTypeBL = premisesTypeBL; }
public void Initialize() { userDalRepositoryMock = new Mock <IUserRepository>(); userMapper = new Mock <IUserMapper>(); userBl = new UserBL(userDalRepositoryMock.Object, userMapper.Object); validUser = new User { Id = 1, Email = "*****@*****.**", Username = "******", Password = "******", FirstName = "Ion", LastName = "Vasilescu" }; }
public GuestController( IUserBL userBL, IFoodDataBL foodDataBL, IFoodDetailBL foodBL, IMapper mapper, IEmailSender mailSender, IContractServices contractServices, IOptions <JWTSetttings> appSettings) { _userBL = userBL; _foodDataBL = foodDataBL; _foodDetailBL = foodBL; _mapper = mapper; _mailSender = mailSender; _contractServices = contractServices; _appSettings = appSettings.Value; }
public AccountBL( IAppConfiguration appConfiguration, IAccountRepository accountRepository, ICipher cipher, IUserRepository userRepository, ITokenGenerator tokenGenerator, IMapper mapper, IUserBL userBl) { _appConfiguration = appConfiguration; _accountRepository = accountRepository; _cipher = cipher; _tokenGenerator = tokenGenerator; _mapper = mapper; _userRepository = userRepository; _userBl = userBl; }
public AdminController(IUserBL UserBL, IRoleBL RoleBL, IMapper mapper, IEmailSender mailSender, IRegisterInfoBL regBl, IPremisesBL premisesBL, IPremisesTypeBL premisesTypeBL ) { _regBl = regBl; _roleBl = RoleBL; _userBL = UserBL; _mapper = mapper; _mailSender = mailSender; _premisesBL = premisesBL; _premisesTypeBL = premisesTypeBL; }
public HomeController(IUserBL iUserBL, IArticleBL iArticleBL) { _iUserBL = iUserBL; _iArticleBL = iArticleBL; }
//--- Cosntructors --- public IndexRebuilder( IDekiChangeSink eventSink, UserBE currentUser, ISearchBL searchBL, IPageBL pageBL, ICommentBL commentBL, IAttachmentBL attachmentBL, IUserBL userBL, NS[] indexNameSpaceWhitelist, DateTime now ) { _eventSink = eventSink; _currentUser = currentUser; _searchBL = searchBL; _pageBL = pageBL; _commentBL = commentBL; _attachmentBL = attachmentBL; _userBL = userBL; _indexNameSpaceWhitelist = indexNameSpaceWhitelist; _now = now; }