public WritersController(IWriterRepository writerRepository , ApplicationUserManager userManager , IEmailingService emailingService) { _writerRepository = writerRepository; _userManager = userManager; _emailingService = emailingService; }
public OrdersController(IOrderRepository orderRepository , ApplicationUserManager userManager , IEmailingService emailingService) { _orderRepository = orderRepository; _userManager = userManager; _emailingService = emailingService; }
public void SetUpTests() { _pricingQueryRepositoryMock = MockRepository.GenerateMock<IPricingQueryRepository>(); _emailingServiceMock = MockRepository.GenerateMock<IEmailingService>(); _customerPricingQueryEngineMock = MockRepository.GenerateMock<ICustomerPricingQueryEngine>(); _controllerUnderTest = new PricingQueryController(_pricingQueryRepositoryMock, _emailingServiceMock, _customerPricingQueryEngineMock); _result = _controllerUnderTest.Index() as ViewResult; }
public EmailingsController(IEmailingRepository emailingRepository , IEmailingDetailRepository emailingDetailRepository , IEmailingService emailingService , ApplicationUserManager userManager) { _emailingRepository = emailingRepository; _emailingDetailRepository = emailingDetailRepository; _emailingService = emailingService; _userManager = userManager; }
public CustomersController(ICustomerRepository customerRepository , ApplicationUserManager userManager , ILifeTimeDiscountService lifeTimeDiscountService , IEmailingService emailingService , ILogger log) { _customerRepository = customerRepository; _userManager = userManager; _lifeTimeDiscountService = lifeTimeDiscountService; _emailingService = emailingService; _log = log; }
public UserService( IRandomGeneratorService <string> randomGeneratorService, IUserRepository userRepository, IAuthLinksRepository authLinksRepository, IEmailingService emailingService, Settings options ) { _randomGeneratorService = randomGeneratorService; _userRepository = userRepository; _authLinksRepository = authLinksRepository; _emailingService = emailingService; _host = options.Host; }
public AlreadyExistsLinuxEmailingScenario(IEmailingService _emailingService) { emailingService = _emailingService; emailBody = @"Hi {0},<br> Your Subversion User Account already exists on the following Repositories {1} Via Linux.<br> <br> To access it, please use the following URLs:<br><br> {2}<br> You should use your Linux Password in order to access the svn repositories .<br> We do have some basic documentation which can be found on this link :<br> http://teamspace/sites/RDISDLM/SitePages/Subversion.aspx <br><br><br> Thanks and best regards,<br> {3}<br> ITWorx<br> {4} "; }
public NewWindowsUserAddedEmailingScenario(IEmailingService _emailingService) { emailingService = _emailingService; emailBody = @"Hi {0},<br><br> Your Subversion User Account has been just created on the following Repositories {1}.<br><br> To access it, please use the following URLs:<br><br> {2}<br> Please be noted that Single Sign On is now enabled for Windows Users when connected from a Syngenta machine, so no username or password is required. When connecting from a non-Syngenta machine please use your standard windows username and password .<br> We do have some basic documentation which can be found on this link :<br> http://teamspace/sites/RDISDLM/SitePages/Subversion.aspx <br><br><br> Thanks and best regards,<br> {3}<br> ITWorx<br><br><br> {4} "; }
public NewLinuxUserAddedEmailingScenario(IEmailingService _emailingService) { emailingService = _emailingService; emailBody = @"Hi {0},<br> Your Subversion User Account has been just created on the following Repositories {1} Via Linux.<br> <br> To access it, please use the following URLs:<br><br> {2}<br> A separate email will be sent to you with the Linux password .<br> We do have some basic documentation which can be found on this link :<br> http://teamspace/sites/RDISDLM/SitePages/Subversion.aspx <br><br><br> Thanks and best regards,<br> {3}<br> ITWorx<br><br><br> {4} "; }
public void SetUpTests() { _pricingQueryRepositoryMock = MockRepository.GenerateMock<IPricingQueryRepository>(); _emailingServiceMock = MockRepository.GenerateMock<IEmailingService>(); _customerPricingQueryEngineMock = MockRepository.GenerateMock<ICustomerPricingQueryEngine>(); _customerPricingQueryEngineMock .Expect(x => x.GenerateQuery(Arg<CustomerPricingQueryModel>.Is.Anything)) .Return(new PricingQuery { Products = new List<Product>(), Value = () => 100.0m }); _controllerUnderTest = new PricingQueryController(_pricingQueryRepositoryMock, _emailingServiceMock, _customerPricingQueryEngineMock); var customerPricingModel = SetUpCustomerPricingQueryModel(); _result = _controllerUnderTest.Register(customerPricingModel) as ViewResult; }
public FailEmailingScenarion(IEmailingService emailingService) { this.emailingService = emailingService; }
public PricingQueryController(IPricingQueryRepository pricingQueryRepository, IEmailingService emailingService, ICustomerPricingQueryEngine customerMapper) { _pricingQueryRepository = pricingQueryRepository; _emailingService = emailingService; _customerMapper = customerMapper; }
public SvnBotEmailScenarioDecider(IEmailingService _emailingService) { emailingService = _emailingService; }