Example #1
0
 /// <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>
 /// ctor the Mighty
 /// </summary>
 public SendToShopController(IUnitOfWorkFactory <BrewgrContext> unitOfWorkFactory, IPartnerIdResolver partnerIdResolver, IPartnerService partnerService,
                             IRecipeService recipeService, ISendToShopService sendToShopService, IStringCryptoService stringCryptoService)
 {
     this.UnitOfWorkFactory   = unitOfWorkFactory;
     this.PartnerIdResolver   = partnerIdResolver;
     this.PartnerService      = partnerService;
     this.RecipeService       = recipeService;
     this.SendToShopService   = sendToShopService;
     this.StringCryptoService = stringCryptoService;
 }
		/// <summary>
		/// ctor the Mighty
		/// </summary>
		public SendToShopController(IUnitOfWorkFactory<BrewgrContext> unitOfWorkFactory, IPartnerIdResolver partnerIdResolver, IPartnerService partnerService, 
			IRecipeService recipeService, ISendToShopService sendToShopService, IStringCryptoService stringCryptoService)
		{
			this.UnitOfWorkFactory = unitOfWorkFactory;
			this.PartnerIdResolver = partnerIdResolver;
			this.PartnerService = partnerService;
			this.RecipeService = recipeService;
			this.SendToShopService = sendToShopService;
			this.StringCryptoService = stringCryptoService;
		}
 /// <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 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);
        }
 public CryptoController(IStringCryptoService stringCryptoService)
 {
     _stringCryptoService = stringCryptoService;
 }
		/// <summary>
		/// ctor the Mighty
		/// </summary>
		public DefaultPartnerIdResolver(IStringCryptoService stringCryptoService, IPartnerService partnerService)
		{
			this.StringCryptoService = stringCryptoService;
			this.PartnerService = partnerService;
		}
Example #11
0
 /// <summary>
 /// ctor the Mighty
 /// </summary>
 public DefaultPartnerIdResolver(IStringCryptoService stringCryptoService, IPartnerService partnerService)
 {
     this.StringCryptoService = stringCryptoService;
     this.PartnerService      = partnerService;
 }