示例#1
0
        /// <summary>
        ///
        /// </summary>
        public LogRequestAndResponseHandler()
        {
            IGenericUoW _UoW = new GenericUoW();
            ILoggerSrvc loggerServiceParam = new LoggerSrvc(_UoW);

            this._loggerSrvc = loggerServiceParam;
        }
示例#2
0
        public ApplicationOAuthProvider(string publicClientId)
        {
            if (publicClientId == null)
            {
                throw new ArgumentNullException("publicClientId");
            }

            _publicClientId = publicClientId;

            IGenericUoW _UoW             = new GenericUoW();
            IUserSrvc   userServiceParam = new UserSrvc(_UoW);

            this._userService = userServiceParam;
        }
示例#3
0
        /// <summary>
        /// Registering all the types
        /// </summary>
        /// <returns></returns>
        private static IUnityContainer BuildUnityContainer()
        {
            var container = new UnityContainer();

            DbContext entities = new TeijonStuffEntities();

            container.RegisterInstance(entities);

            GenericUoW GUoW = new GenericUoW(entities);

            container.RegisterInstance(GUoW);

            MvcUnityContainer.Container = container;
            return(container);
        }
 public ApplicationApiController(GenericUoW <JobApplication> applicationUoW, GenericUoW <Position> positionUoW)
 {
     this.applicationUoW = applicationUoW;
     this.positionUoW    = positionUoW;
 }
示例#5
0
 public PeopleController(GenericUoW UoW2)
 {
     this.UoW2 = UoW2;
 }
示例#6
0
 public PositionController(GenericUoW <Position> positionUoW)
 {
     this.positionUoW = positionUoW;
 }