Exemple #1
0
 //--- Constructors ---
 public SeatingBL(IUserBL userBL, ILicenseBL licenseBL, ICurrentUserContext userContext, IDekiDataSession dataSession, ILog log) {
     _userBL = userBL;
     _licenseBL = licenseBL;
     _log = log;
     _userContext = userContext;
     _dataSession = dataSession;
 }
Exemple #2
0
 public HomeController(ILogger <HomeController> logger, IUserBL userbl, IWebHostEnvironment env, IFileProvider fileProvider)
 {
     _logger = logger;
     _userBL = userbl;
     _env    = env;
     dist    = fileProvider;
 }
Exemple #3
0
 public DistributorController(IFoodBL productBL, IMapper mapper, IUserBL userBL, IFoodDataBL foodDataBL, ITransactionBL transactionBL)
 {
     _mapper        = mapper;
     _foodBL        = productBL;
     _foodDataBL    = foodDataBL;
     _transactionBL = transactionBL;
     _userBL        = userBL;
 }
Exemple #4
0
 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);
 }
Exemple #5
0
 //--- Constructors ---
 public SeatingBL(IUserBL userBL, ILicenseBL licenseBL, ICurrentUserContext userContext, IDekiDataSession dataSession, ILog log)
 {
     _userBL      = userBL;
     _licenseBL   = licenseBL;
     _log         = log;
     _userContext = userContext;
     _dataSession = dataSession;
 }
 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;
 }
Exemple #8
0
 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;
 }
Exemple #9
0
 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;
 }
Exemple #10
0
 public UsersController(ILog logger, ApplicationUserManager appUserManager, IUserBL userBL, IRoleBL roleBL)
     : base(logger)
 {
     _logger         = logger;
     _appUserManager = appUserManager;
     _userBL         = userBL;
     _roleBL         = roleBL;
 }
Exemple #11
0
 public RegistrationController(IHttpClientFactory httpClientFactory, GabDbContext db, IUserBL userbl, INotificationClient notificationClient, ILogger <RegistrationController> logger)
 {
     _notificationClient = notificationClient;
     _httpClientFactory  = httpClientFactory;
     _db     = db;
     _userbl = userbl;
     _logger = logger;
 }
Exemple #12
0
 //--- 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);
        }
Exemple #14
0
        public UserBLTests()
        {
            // Arrange
            var container = new UnityContainer();

            IOCRegistration.Register(container);

            this.userBL = container.Resolve <IUserBL>();
        }
Exemple #15
0
        public UnitTest1()
        {
            var context = new Application(User);

            _reposLayeruser       = new UserRL(context);
            _reposLayerParking    = new ParkingRL(context);
            _businessLayeruser    = new UserBL(_reposLayeruser);
            _businessLayerparking = new ParkingBL(_reposLayerParking);
        }
Exemple #16
0
        public UsersController(IUserBL userBL, IConfiguration configuration, IOptions <AppSetting> appSettings)
        {
            this.userBL   = userBL;
            Configuration = configuration;

            {
                _appSettings = appSettings.Value;
            }
        }
Exemple #17
0
 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);
        }
Exemple #20
0
        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);
        }
Exemple #23
0
        public BaseUserController(IUserBL userBL) : base()
        {
            this.userBL = userBL;

            currentUser = new Lazy <User>(() =>
            {
                if (CurrentUserId == null)
                {
                    return(null);
                }
                return(userBL.GetById(CurrentUserId.Value));
            });
        }
Exemple #24
0
        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);
        }
Exemple #26
0
        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
            };
        }
Exemple #27
0
 public UserController(IUserBL UserBL,
                       IRoleBL RoleBL,
                       IMapper mapper,
                       IEmailSender mailSender,
                       IPremisesBL premisesBL,
                       IPremisesTypeBL premisesTypeBL
                       )
 {
     _roleBl         = RoleBL;
     _userBL         = UserBL;
     _mapper         = mapper;
     _premisesBL     = premisesBL;
     _premisesTypeBL = premisesTypeBL;
 }
Exemple #28
0
        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"
            };
        }
Exemple #29
0
 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;
 }
Exemple #30
0
 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;
 }
Exemple #31
0
 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;
 }
Exemple #33
0
 //--- 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;
 }
Exemple #34
0
 //--- 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;
 }