public MembershipService(ISessionFactory sessionFactory,
     IMembershipMailer membershipMailer,
     IFormAuthenticationStoreService formsAuthenticationStoreService)
 {
     _sessionFactory = sessionFactory;
     _membershipMailer = membershipMailer;
     _formsAuthenticationStoreService = formsAuthenticationStoreService;
 }
 public MembershipMailerMock()
 {
     _wrapperMock.Setup(w => w.GetHtmlTemplate(It.IsAny<string>(), It.IsAny<string>(), It.IsAny<string>())).Returns<string, string, string>((x, y, z) => new FileSystemWrapper().GetHtmlTemplate(string.Format("{0}\\Templates", StrixPlatform.Environment.WorkingDirectory), y, z));
     _httpRequestMock.Setup(m => m.Url).Returns(new Uri("http://www.strixit.com"));
     _httpRequestMock.Setup(m => m.ApplicationPath).Returns("/");
     _httpMock.Setup(m => m.Request).Returns(_httpRequestMock.Object);
     _membershipMailer = new MembershipMailer(_wrapperMock.Object, _mailerMock.Object, _httpMock.Object);
 }
Beispiel #3
0
 public MembershipMailerMock()
 {
     _wrapperMock.Setup(w => w.GetHtmlTemplate(It.IsAny <string>(), It.IsAny <string>(), It.IsAny <string>())).Returns <string, string, string>((x, y, z) => new FileSystemWrapper().GetHtmlTemplate(string.Format("{0}\\Templates", StrixPlatform.Environment.WorkingDirectory), y, z));
     _httpRequestMock.Setup(m => m.Url).Returns(new Uri("http://www.strixit.com"));
     _httpRequestMock.Setup(m => m.ApplicationPath).Returns("/");
     _httpMock.Setup(m => m.Request).Returns(_httpRequestMock.Object);
     _membershipMailer = new MembershipMailer(_wrapperMock.Object, _mailerMock.Object, _httpMock.Object);
 }
Beispiel #4
0
 public UserService(IMembershipDataSource dataSource, ISecurityManager securityManager, IUserManager userManager, IGroupManager groupManager, IRoleManager roleManager, IMembershipMailer membershipMailer)
 {
     this._dataSource      = dataSource;
     this._securityManager = securityManager;
     this._userManager     = userManager;
     this._groupManager    = groupManager;
     this._roleManager     = roleManager;
     this._mailer          = membershipMailer;
 }
Beispiel #5
0
 public AccountService(
     IMembershipDataSource dataSource,
     ISecurityManager securityManager,
     IUserManager userManager,
     IRoleManager roleManager,
     IMembershipMailer mailer)
 {
     this._dataSource      = dataSource;
     this._securityManager = securityManager;
     this._userManager     = userManager;
     this._roleManager     = roleManager;
     this._mailer          = mailer;
 }
 public AccountService(
     IMembershipDataSource dataSource,
     ISecurityManager securityManager,
     IUserManager userManager,
     IRoleManager roleManager,
     IMembershipMailer mailer)
 {
     this._dataSource = dataSource;
     this._securityManager = securityManager;
     this._userManager = userManager;
     this._roleManager = roleManager;
     this._mailer = mailer;
 }