public AccountController(
            UserManager <User> userManager,
            SignInManager <User> signInManager,
            IEmailSender emailSender,
            ILogger <AccountController> logger,
            ITwitterService twitterService,
            IUserService userService,
            ITwitterAccountService twitterAccountService,
            ITweetService tweetService)
        {
            Guard.WhenArgument(userManager, "userManager").IsNull().Throw();
            _userManager = userManager;

            Guard.WhenArgument(signInManager, "signInManager").IsNull().Throw();
            _signInManager = signInManager;

            Guard.WhenArgument(emailSender, "emailSender").IsNull().Throw();
            _emailSender = emailSender;

            Guard.WhenArgument(logger, "logger").IsNull().Throw();
            _logger = logger;

            Guard.WhenArgument(twitterService, "twitterService").IsNull().Throw();
            this.twitterService = twitterService;

            Guard.WhenArgument(userService, "userService").IsNull().Throw();
            this.userService = userService;

            Guard.WhenArgument(twitterAccountService, "twitterAccountService").IsNull().Throw();
            this.twitterAccountService = twitterAccountService;

            Guard.WhenArgument(tweetService, "tweetService").IsNull().Throw();
            this.tweetService = tweetService;
        }
Beispiel #2
0
        public TwitterAccountController(ITwitterService twitterService, ITwitterAccountService twitterAccountService, IUserService userService, IMappingProvider mappingProvider, UserManager <User> userManager)
        {
            Guard.WhenArgument(twitterService, "Twitter Service").IsNull().Throw();
            Guard.WhenArgument(twitterAccountService, "TwitterAccount Service").IsNull().Throw();
            Guard.WhenArgument(userService, "User Service").IsNull().Throw();
            Guard.WhenArgument(mappingProvider, "Mapping Provider").IsNull().Throw();
            Guard.WhenArgument(userManager, "User Manager").IsNull().Throw();

            this.twitterService        = twitterService;
            this.twitterAccountService = twitterAccountService;
            this.userService           = userService;
            this.mappingProvider       = mappingProvider;
            this.userManager           = userManager;
        }
Beispiel #3
0
 public TwitterAccountController(
     ITwitterApiService twitterApiService,
     ITwitterAccountService twitterAccountService,
     IMemoryCache memoryCache,
     IMappingProvider mapping,
     UserManager <User> userManager
     )
 {
     this.twitterApiService     = twitterApiService;
     this.twitterAccountService = twitterAccountService;
     this.memoryCache           = memoryCache;
     this.mapping     = mapping;
     this.userManager = userManager;
 }
Beispiel #4
0
        public UserManagementController(
            IUserService userService,
            ITwitterAccountService twitterAccountService,
            ITweetService tweetService
            )
        {
            Guard.WhenArgument(userService, "User Service").IsNull().Throw();
            this.userService = userService;

            Guard.WhenArgument(twitterAccountService, "Twitter Account Service").IsNull().Throw();
            this.twitterAccountService = twitterAccountService;

            Guard.WhenArgument(tweetService, "Tweet Service").IsNull().Throw();
            this.tweetService = tweetService;
        }
 public TwitterAccountStatusController(ITwitterAccountService twitterAccountService, ITwitterStatusService twitterStatusService, UserManager <User> userManager)
 {
     this.twitterAccountService = twitterAccountService;
     this.twitterStatusService  = twitterStatusService;
     this.userManager           = userManager;
 }
Beispiel #6
0
 public AdminController(IMappingProvider mappingProvider, ITwitterAccountService twitterAccountService, UserManager <User> userManager)
 {
     this.mappingProvider       = mappingProvider;
     this.twitterAccountService = twitterAccountService;
     this.userManager           = userManager;
 }