/// <summary> /// ctor the Mighty /// </summary> public BrewSessionCommentEmailMessage(IWebSettings webSettings, BrewSession brewSession, string commenterUsername, UserSummary userToNotify, BrewSessionComment brewSessionComment, BrewgrUrlBuilder brewgrUrlBuilder) : base(webSettings) { this.WebSettings = webSettings; this.BrewSession = brewSession; this.CommenterUsername = commenterUsername; this.UserToNotify = userToNotify; this.BrewSessionComment = brewSessionComment; this.BrewgrUrlBuilder = brewgrUrlBuilder; // Set Sender this.SenderAddress = webSettings.SenderAddress; this.SenderDisplayName = webSettings.SenderDisplayName; // Set Recipient this.ToRecipients.Add(userToNotify.EmailAddress); // Build Subject if (brewSession.UserId == userToNotify.UserId) { this.Subject = string.Format("{0} commented on your brew session for {1}", commenterUsername, brewSession.RecipeSummary.RecipeName); } else { this.Subject = string.Format("{0} also left a comment on the brew session for {1}", commenterUsername, brewSession.RecipeSummary.RecipeName); } }
/// <summary> /// ctor the Mighty /// </summary> public RecipeCommentEmailMessage(IWebSettings webSettings, RecipeSummary recipeSummary, string commenterUsername, UserSummary userToNotify, RecipeComment recipeComment, BrewgrUrlBuilder brewgrUrlBuilder) : base(webSettings) { this.WebSettings = webSettings; this.RecipeSummary = recipeSummary; this.CommenterUsername = commenterUsername; this.UserToNotify = userToNotify; this.RecipeComment = recipeComment; this.BrewgrUrlBuilder = brewgrUrlBuilder; // Set Sender this.SenderAddress = webSettings.SenderAddress; this.SenderDisplayName = webSettings.SenderDisplayName; // Set Recipient this.ToRecipients.Add(userToNotify.EmailAddress); // Build Subject if (recipeSummary.CreatedBy == userToNotify.UserId) { this.Subject = string.Format("{0} commented on your recipe, {1}", commenterUsername, recipeSummary.RecipeName); } else { this.Subject = string.Format("{0} also left a comment on the recipe, {1}", commenterUsername, recipeSummary.RecipeName); } }
/// <summary> /// ctor the Mighty /// </summary> public RecipeCommentEmailMessage(IWebSettings webSettings, RecipeSummary recipeSummary, string commenterUsername, UserSummary userToNotify, RecipeComment recipeComment, BrewgrUrlBuilder brewgrUrlBuilder) : base(webSettings) { this.WebSettings = webSettings; this.RecipeSummary = recipeSummary; this.CommenterUsername = commenterUsername; this.UserToNotify = userToNotify; this.RecipeComment = recipeComment; this.BrewgrUrlBuilder = brewgrUrlBuilder; // Set Sender this.SenderAddress = webSettings.SenderAddress; this.SenderDisplayName = webSettings.SenderDisplayName; // Set Recipient this.ToRecipients.Add(userToNotify.EmailAddress); // Build Subject if (recipeSummary.CreatedBy == userToNotify.UserId) { this.Subject = string.Format("{0} commented on your recipe, {1}", commenterUsername, recipeSummary.RecipeName); } else { this.Subject = string.Format("{0} also left a comment on the recipe, {1}", commenterUsername, recipeSummary.RecipeName); } }
/// <summary> /// ctor the Mighty /// </summary> public BrewSessionCommentEmailMessage(IWebSettings webSettings, BrewSession brewSession, string commenterUsername, UserSummary userToNotify, BrewSessionComment brewSessionComment, BrewgrUrlBuilder brewgrUrlBuilder) : base(webSettings) { this.WebSettings = webSettings; this.BrewSession = brewSession; this.CommenterUsername = commenterUsername; this.UserToNotify = userToNotify; this.BrewSessionComment = brewSessionComment; this.BrewgrUrlBuilder = brewgrUrlBuilder; // Set Sender this.SenderAddress = webSettings.SenderAddress; this.SenderDisplayName = webSettings.SenderDisplayName; // Set Recipient this.ToRecipients.Add(userToNotify.EmailAddress); // Build Subject if (brewSession.UserId == userToNotify.UserId) { this.Subject = string.Format("{0} commented on your brew session for {1}", commenterUsername, brewSession.RecipeSummary.RecipeName); } else { this.Subject = string.Format("{0} also left a comment on the brew session for {1}", commenterUsername, brewSession.RecipeSummary.RecipeName); } }
/// <summary> /// ctor the Mighty /// </summary> public DefaultSendToShopEmailMessageFactory(IUserService userService, IPartnerService partnerService, IStringCryptoService stringCryptoService, IWebSettings webSettings, IRecipeDataService recipeDataService) { this.UserService = userService; this.PartnerService = partnerService; this.StringCryptoService = stringCryptoService; this.WebSettings = webSettings; this.RecipeDataService = recipeDataService; }
/// <summary> /// ctor the Mighty /// </summary> public DefaultSendToShopEmailMessageFactory(IUserService userService, IPartnerService partnerService, IStringCryptoService stringCryptoService, IWebSettings webSettings, IRecipeDataService recipeDataService) { this.UserService = userService; this.PartnerService = partnerService; this.StringCryptoService = stringCryptoService; this.WebSettings = webSettings; this.RecipeDataService = recipeDataService; }
/// <summary> /// Franck The Tank /// </summary> public NewAccountEmailMessage(IWebSettings webSettings) { this.WebSettings = webSettings; this.SenderAddress = webSettings.SenderAddress; this.SenderDisplayName = webSettings.SenderDisplayName; this.Subject = "Welcome to Brewgr.com"; this.FormatAsHtml = false; }
/// <summary> /// ctor the Mighty /// </summary> public PasswordResetEmailMessage(IWebSettings webSettings) { this.WebSettings = webSettings; this.SenderAddress = webSettings.SenderAddress; this.SenderDisplayName = webSettings.SenderDisplayName; this.Subject = "Password Reset for Brewgr.com"; this.FormatAsHtml = false; }
/// <summary> /// ctor the Mighty /// </summary> public BrewerFollowNotification(IWebSettings webSettings, IUserService userService, IEmailSender emailSender, INotificationService notificationService, BrewgrUrlBuilder brewgrUrlBuilder) { this.WebSettings = webSettings; this.UserService = userService; this.EmailSender = emailSender; this.NotificationService = notificationService; this.BrewgrUrlBuilder = brewgrUrlBuilder; }
/// <summary> /// Franck The Tank /// </summary> public NewAccountEmailMessage(IWebSettings webSettings) { this.WebSettings = webSettings; this.SenderAddress = webSettings.SenderAddress; this.SenderDisplayName = webSettings.SenderDisplayName; this.Subject = "Welcome to Brewgr.com"; this.FormatAsHtml = false; }
/// <summary> /// ctor the Mighty /// </summary> public BrewerFollowNotification(IWebSettings webSettings, IUserService userService, IEmailSender emailSender, INotificationService notificationService, BrewgrUrlBuilder brewgrUrlBuilder) { this.WebSettings = webSettings; this.UserService = userService; this.EmailSender = emailSender; this.NotificationService = notificationService; this.BrewgrUrlBuilder = brewgrUrlBuilder; }
/// <summary> /// ctor the Mighty /// </summary> public PasswordResetEmailMessage(IWebSettings webSettings) { this.WebSettings = webSettings; this.SenderAddress = webSettings.SenderAddress; this.SenderDisplayName = webSettings.SenderDisplayName; this.Subject = "Password Reset for Brewgr.com"; this.FormatAsHtml = false; }
/// <summary> /// ctor the Mighty /// </summary> public BrewSessionCommentNotification(INotificationService notificationService, IRecipeService recipeService, IUserService userService, IEmailSender emailSender, IWebSettings webSettings, BrewgrUrlBuilder recipeUrlBuilder) { this.NotificationService = notificationService; this.RecipeService = recipeService; this.UserService = userService; this.EmailSender = emailSender; this.WebSettings = webSettings; this.RecipeUrlBuilder = recipeUrlBuilder; }
/// <summary> /// ctor the Mighty /// </summary> public RecipeCommentNotification(INotificationService notificationService, IRecipeService recipeService, IUserService userService, IEmailSender emailSender, IWebSettings webSettings, BrewgrUrlBuilder recipeUrlBuilder) { this.NotificationService = notificationService; this.RecipeService = recipeService; this.UserService = userService; this.EmailSender = emailSender; this.WebSettings = webSettings; this.RecipeUrlBuilder = recipeUrlBuilder; }
/// <summary> /// ctor the Mighty /// </summary> public ContactFormEmailMessage(IWebSettings webSettings, IUserHostAddressResolver userHostAddressResolver) { WebSettings = webSettings; this.UserHostAddressResolver = userHostAddressResolver; this.SenderAddress = webSettings.SenderAddress; this.Subject = "Brewgr.com Contact Form"; this.FormatAsHtml = false; webSettings.ContactFormEmailAddress.ForEach(this.ToRecipients.Add); }
/// <summary> /// ctor the Mighty /// </summary> public ContactFormEmailMessage(IWebSettings webSettings, IUserHostAddressResolver userHostAddressResolver) { WebSettings = webSettings; this.UserHostAddressResolver = userHostAddressResolver; this.SenderAddress = webSettings.SenderAddress; this.Subject = "Brewgr.com Contact Form"; this.FormatAsHtml = false; webSettings.ContactFormEmailAddress.ForEach(this.ToRecipients.Add); }
/// <summary> /// ctor the Mighty /// </summary> public SendToShopOnHoldMessage(SendToShopOrder sendToShopOrder, Partner partner, PartnerSendToShopSettings partnerSendToShopSettings, IWebSettings webSettings) { this.SendToShopOrder = sendToShopOrder; this.Partner = partner; this.PartnerSendToShopSettings = partnerSendToShopSettings; this.FormatAsHtml = false; this.ToRecipients.Add(sendToShopOrder.EmailAddress); this.Subject = "ON-HOLD: Send-To-Shop Order #: " + sendToShopOrder.SendToShopOrderId; this.SenderAddress = webSettings.SenderAddress; this.SenderDisplayName = webSettings.SenderDisplayName; }
/// <summary> /// ctor the Mighty /// </summary> public SendToShopInProgressMessage(SendToShopOrder sendToShopOrder, Partner partner, PartnerSendToShopSettings partnerSendToShopSettings, IWebSettings webSettings) { this.SendToShopOrder = sendToShopOrder; this.Partner = partner; this.PartnerSendToShopSettings = partnerSendToShopSettings; this.FormatAsHtml = false; this.ToRecipients.Add(sendToShopOrder.EmailAddress); this.Subject = "IN-PROGRESS: Send-To-Shop Order #: " + sendToShopOrder.SendToShopOrderId; this.SenderAddress = webSettings.SenderAddress; this.SenderDisplayName = webSettings.SenderDisplayName; }
/// <summary> /// ctor the Mighty /// </summary> public SendToShopCancellationMessage(SendToShopOrder sendToShopOrder, Partner partner, PartnerSendToShopSettings partnerSendToShopSettings, IWebSettings webSettings) { this.SendToShopOrder = sendToShopOrder; this.Partner = partner; this.PartnerSendToShopSettings = partnerSendToShopSettings; this.WebSettings = webSettings; this.FormatAsHtml = false; this.ToRecipients.Add(sendToShopOrder.EmailAddress); this.Subject = "CANCELLED: Send-To-Shop Order #: " + sendToShopOrder.SendToShopOrderId; this.SenderAddress = webSettings.SenderAddress; this.SenderDisplayName = webSettings.SenderDisplayName; }
/// <summary> /// ctor the Mighty /// </summary> public DefaultSendToShopService(IBrewgrRepository repository, IPartnerIdResolver partnerIdResolver, IPartnerService partnerService, IUserService userService, IStringCryptoService stringCryptoService, IWebSettings webSettings, IEmailSender emailSender, IRecipeDataService recipeDataService, ISendToShopEmailMessageFactory sendToShopEmailMessageFactory) { this.Repository = repository; this.PartnerIdResolver = partnerIdResolver; this.PartnerService = partnerService; this.UserService = userService; this.StringCryptoService = stringCryptoService; this.WebSettings = webSettings; this.EmailSender = emailSender; this.RecipeDataService = recipeDataService; this.SendToShopEmailMessageFactory = sendToShopEmailMessageFactory; }
/// <summary> /// ctor the Mighty /// </summary> public DefaultSendToShopService(IBrewgrRepository repository, IPartnerIdResolver partnerIdResolver, IPartnerService partnerService, IUserService userService, IStringCryptoService stringCryptoService, IWebSettings webSettings, IEmailSender emailSender, IRecipeDataService recipeDataService, ISendToShopEmailMessageFactory sendToShopEmailMessageFactory) { this.Repository = repository; this.PartnerIdResolver = partnerIdResolver; this.PartnerService = partnerService; this.UserService = userService; this.StringCryptoService = stringCryptoService; this.WebSettings = webSettings; this.EmailSender = emailSender; this.RecipeDataService = recipeDataService; this.SendToShopEmailMessageFactory = sendToShopEmailMessageFactory; }
/// <summary> /// ctor the Mighty /// </summary> public AdminController(IUnitOfWorkFactory <BrewgrContext> unitOfWorkFactory, IUserService userService, IAdminService adminService, IMarketingService marketingService, IRecipeDataService brewDataService, IBeerStyleService beerStyleService, IAffiliateService affiliateService, IAuthenticationService authenticationService, ISendToShopService sendToShopService, IWebSettings webSettings) { this.UnitOfWorkFactory = unitOfWorkFactory; this.UserService = userService; this.AdminService = adminService; this.MarketingService = marketingService; this.BrewDataService = brewDataService; this.BeerStyleService = beerStyleService; this.AffiliateService = affiliateService; this.AuthenticationService = authenticationService; this.SendToShopService = sendToShopService; WebSettings = webSettings; }
/// <summary> /// ctor the Mighty /// </summary> public AuthController(IUnitOfWorkFactory <BrewgrContext> unitOfWorkFactory, IUserLoginService userLoginService, IAuthenticationService authService, IUserResolver userResolver, IOAuthService oAuthService, IUserService userService, IFacebookConnectSettings facebookConnectSettings, IEmailSender emailSender, IEmailMessageFactory emailMessageFactory, IWebSettings webSettings) { this._unitOfWorkFactory = unitOfWorkFactory; this._userLoginService = userLoginService; this._authenticationService = authService; this._userResolver = userResolver; this._oAuthService = oAuthService; this._userService = userService; this._facebookConnectSettings = facebookConnectSettings; this._emailSender = emailSender; this._emailMessageFactory = emailMessageFactory; _webSettings = webSettings; }
/// <summary> /// ctor the Mighty /// </summary> public BrewerFollowEmailMessage(IWebSettings webSettings, string followingUsername, UserSummary userToNotify, BrewgrUrlBuilder brewgrUrlBuilder) : base(webSettings) { this.WebSettings = webSettings; this.FollowingUsername = followingUsername; this.UserToNotify = userToNotify; this.BrewgrUrlBuilder = brewgrUrlBuilder; // Set Sender this.SenderAddress = webSettings.SenderAddress; this.SenderDisplayName = webSettings.SenderDisplayName; // Set Recipient this.ToRecipients.Add(userToNotify.EmailAddress); // Build Subject this.Subject = followingUsername + " is now following you!"; }
/// <summary> /// ctor the Mighty /// </summary> protected BrewgrController() { // Setup Messaging this.ViewBag.Messages = new List <IMessage>(); this.ForwardedMessageStore = new TempDataMessageStore(this.TempData); // Set Environment ViewBag.Environment = ConfigurationManager.AppSettings["Environment"]; // Dependencies (manual injection to avoid ctor pollution) var kernel = KernelPersister.Get(); this.UserResolver = kernel.GetService(typeof(IUserResolver)) as IUserResolver; this.UserService = kernel.GetService(typeof(IUserService)) as IUserService; this.WebSettings = kernel.GetService(typeof(IWebSettings)) as IWebSettings; this.AuthenticationService = kernel.GetService(typeof(IAuthenticationService)) as IAuthenticationService; }
/// <summary> /// ctor the Mighty /// </summary> public BrewerFollowEmailMessage(IWebSettings webSettings, string followingUsername, UserSummary userToNotify, BrewgrUrlBuilder brewgrUrlBuilder) : base(webSettings) { this.WebSettings = webSettings; this.FollowingUsername = followingUsername; this.UserToNotify = userToNotify; this.BrewgrUrlBuilder = brewgrUrlBuilder; // Set Sender this.SenderAddress = webSettings.SenderAddress; this.SenderDisplayName = webSettings.SenderDisplayName; // Set Recipient this.ToRecipients.Add(userToNotify.EmailAddress); // Build Subject this.Subject = followingUsername + " is now following you!"; }
/// <summary> /// ctor the Mighty /// </summary> public SendToShopOrderPartnerNotificationMessage(Partner partner, PartnerSendToShopSettings partnerSendToShopSettings, SendToShopOrder sendToShopOrder, User user, IStringCryptoService stringCryptoService, IWebSettings webSettings, IRecipeDataService recipeDataService) { this.Partner = partner; this.SendToShopOrder = sendToShopOrder; this.User = user; this.StringCryptoService = stringCryptoService; this.WebSettings = webSettings; this.Ingredients = recipeDataService.GetAllPublicIngredients(); // Message Setup this.FormatAsHtml = true; this.Subject = "Brewgr.com - Send-To-Shop Order #:" + sendToShopOrder.SendToShopOrderId; this.SenderAddress = webSettings.SenderAddress; this.SenderDisplayName = webSettings.SenderDisplayName; this.ToRecipients.Add(partnerSendToShopSettings.DeliveryEmailAddress); }
/// <summary> /// ctor the Mighty /// </summary> public SendToShopOrderPartnerNotificationMessage(Partner partner, PartnerSendToShopSettings partnerSendToShopSettings, SendToShopOrder sendToShopOrder, User user, IStringCryptoService stringCryptoService, IWebSettings webSettings, IRecipeDataService recipeDataService) { this.Partner = partner; this.SendToShopOrder = sendToShopOrder; this.User = user; this.StringCryptoService = stringCryptoService; this.WebSettings = webSettings; this.Ingredients = recipeDataService.GetAllPublicIngredients(); // Message Setup this.FormatAsHtml = true; this.Subject = "Brewgr.com - Send-To-Shop Order #:" + sendToShopOrder.SendToShopOrderId; this.SenderAddress = webSettings.SenderAddress; this.SenderDisplayName = webSettings.SenderDisplayName; this.ToRecipients.Add(partnerSendToShopSettings.DeliveryEmailAddress); }
/// <summary> /// ctor the Mighty /// </summary> public RecipeCommentEmailMessage(IWebSettings webSettings, RecipeSummary recipeSummary, string commenterUsername, UserSummary userToNotify) { RecipeSummary = recipeSummary; CommenterUsername = commenterUsername; UserToNotify = userToNotify; this.SenderAddress = webSettings.SenderAddress; this.SenderDisplayName = webSettings.SenderDisplayName; this.ToRecipients.Add(userToNotify.EmailAddress); // Build Subject if (recipeSummary.CreatedBy == userToNotify.UserId) { this.Subject = string.Format("{0} commented on your recipe, {1}", commenterUsername, recipeSummary.RecipeName); } else { this.Subject = string.Format("{0} also left a comment on the recipe, {1}", commenterUsername, recipeSummary.RecipeName); } }
/// <summary> /// ctor the Mighty /// </summary> public RecipeCommentEmailMessage(IWebSettings webSettings, RecipeSummary recipeSummary, string commenterUsername, UserSummary userToNotify) { RecipeSummary = recipeSummary; CommenterUsername = commenterUsername; UserToNotify = userToNotify; this.SenderAddress = webSettings.SenderAddress; this.SenderDisplayName = webSettings.SenderDisplayName; this.ToRecipients.Add(userToNotify.EmailAddress); // Build Subject if (recipeSummary.CreatedBy == userToNotify.UserId) { this.Subject = string.Format("{0} commented on your recipe, {1}", commenterUsername, recipeSummary.RecipeName); } else { this.Subject = string.Format("{0} also left a comment on the recipe, {1}", commenterUsername, recipeSummary.RecipeName); } }
/// <summary> /// ctor the Mighty /// </summary> public BrewgrEmailMessage(IWebSettings webSettings) { this.WebSettings = webSettings; }
/// <summary> /// Initializes a new instance of the <see cref="BotService" /> class. /// </summary> /// <param name="webDriverSettings">The web driver settings.</param> /// <param name="seleniumHelperFactory">The selenium helper factory.</param> public BotService(IWebSettings webDriverSettings, ISeleniumHelperFactory seleniumHelperFactory) : base(webDriverSettings, seleniumHelperFactory) { _webDriverSettings = webDriverSettings; }
/// <summary> /// ctor the Mighty /// </summary> public DefaultFacebookConnectSettings(IWebSettings webSettings) { this.WebSettings = webSettings; }
/// <summary> /// ctor the Mighty /// </summary> public RecipeMapper(IUserResolver userResolver, IWebSettings webSettings) { this.UserResolver = userResolver; this.WebSettings = webSettings; }
/// <summary> /// Initializes a new instance of the <see cref="WebDriverHelpers" /> class. /// </summary> /// <param name="webSettings">The web settings.</param> /// <param name="seleniumHelperFactory">The selenium helper factory.</param> protected WebDriverHelpers(IWebSettings webSettings, ISeleniumHelperFactory seleniumHelperFactory) { _webDriver = seleniumHelperFactory.CreateChrome(10, null, null, webSettings.CrxPath, null); }
/// <summary> /// ctor the Mighty /// </summary> public BrewgrUrlBuilder(IWebSettings webSettings) { this.WebSettings = webSettings; }
/// <summary> /// ctor the Mighty /// </summary> public RecipeMapper(IUserResolver userResolver, IWebSettings webSettings) { this.UserResolver = userResolver; this.WebSettings = webSettings; }
public GitRepositoriesController(IGitHubManager gitHubManager, IWebSettings webSettings) { _gitHubManager = gitHubManager; _webSettings = webSettings; }
public KAuthorize(IWebSettings _webSettings, IEnumerable<string> roles, IEnumerable<string> users) { webSettings = _webSettings; }
/// <summary> /// ctor the Mighty /// </summary> public DefaultBeerXmlRecipeExporter(IWebSettings webSettings, IRecipeUnitConverter recipeUnitConverter, IBeerStyleService beerStyleService) { this.WebSettings = webSettings; this.RecipeUnitConverter = recipeUnitConverter; this.BeerStyleService = beerStyleService; }
/// <summary> /// ctor the Mighty /// </summary> public DefaultBeerStyleService(IBrewgrRepository repository, ICachingService cachingService, IWebSettings webSettings) { this.Repository = repository; this.CachingService = cachingService; this.WebSettings = webSettings; }
/// <summary> /// ctor the Mighty /// </summary> public BrewgrUrlBuilder(IWebSettings webSettings) { this.WebSettings = webSettings; }
/// <summary> /// ctor the Mighty /// </summary> public DefaultFacebookConnectSettings(IWebSettings webSettings) { this.WebSettings = webSettings; }
public static RobokassaApi GetRobokassaApi(IWebSettings webSettings) { return(new RobokassaApi(webSettings.RobokassaSecurityParams)); }
internal static void ResetWebSettings() { _webSettings = null; }
public MvcControllerBase(IWebSettings _webSettings) { webSettings = _webSettings; Conclusion = new Dictionary<string, object>(); }
/// <summary> /// ctor the Mighty /// </summary> public DefaultBeerXmlRecipeExporter(IWebSettings webSettings, IRecipeUnitConverter recipeUnitConverter, IBeerStyleService beerStyleService) { this.WebSettings = webSettings; this.RecipeUnitConverter = recipeUnitConverter; this.BeerStyleService = beerStyleService; }
/// <summary> /// ctor the Mighty /// </summary> public BrewgrEmailMessage(IWebSettings webSettings) { this.WebSettings = webSettings; }
/// <summary> /// ctor the Mighty /// </summary> public DefaultEmailMessageFactory(IWebSettings webSettings, IUserHostAddressResolver userHostAddressResolver) { this.WebSettings = webSettings; this.UserHostAddressResolver = userHostAddressResolver; }
/// <summary> /// ctor the Mighty /// </summary> public DefaultBeerStyleService(IBrewgrRepository repository, ICachingService cachingService, IWebSettings webSettings) { this.Repository = repository; this.CachingService = cachingService; this.WebSettings = webSettings; }
/// <summary> /// ctor the Mighty /// </summary> public DefaultEmailMessageFactory(IWebSettings webSettings, IUserHostAddressResolver userHostAddressResolver) { this.WebSettings = webSettings; this.UserHostAddressResolver = userHostAddressResolver; }