public BackdoorController(IUserRepository users, IAuthCookieFactory authCookieFactory) { if (users == null) throw new ArgumentNullException("users"); if (authCookieFactory == null) throw new ArgumentNullException("authCookieFactory"); this.users = users; this.authCookieFactory = authCookieFactory; }
public PublicController( IAuthCookieFactory cookieFactory, IUserFactory userFactory, IDocumentStore documentStore) { if (cookieFactory == null) throw new ArgumentNullException("cookieFactory"); if (userFactory == null) throw new ArgumentNullException("userFactory"); if (documentStore == null) throw new ArgumentNullException("documentStore"); this.cookieFactory = cookieFactory; this.documentStore = documentStore; this.userFactory = userFactory; }
public AuthCookieAttribute(IAuthCookieFactory cookieFactory) { if (cookieFactory == null) throw new ArgumentNullException("cookieFactory"); this.cookieFactory = cookieFactory; }