Exemplo n.º 1
0
        public LoginController(ILogger logger, IAuthService authService)
        {
            if (logger != null)
            {
                _logger = logger;
            }
            else
            {
                LoggerFactory factory = new LoggerFactory();
                _logger = factory.GetLogger();
            }

            if (authService != null)
            {
                _authService = authService;
            }
            else
            {
                ServicesFactory factory = new ServicesFactory();
                _authService = factory.GetAuthService();
            }
        }