Пример #1
0
        public void CampaignsCommandTestsInitialize()
        {
            _campaignsCommand = new CampaignsCommand(_repository);
            _campaignsQuery   = new CampaignsQuery(_repository);

            Resolve <IDbConnectionFactory>().DeleteAllTestData();
        }
Пример #2
0
 public CampaignEmailsCommand(ICampaignsQuery campaignsQuery, ISettingsQuery settingsQuery, ISettingsCommand settingsCommand, IEmailsCommand emailsCommand, string returnAddress, string returnDisplayName)
 {
     _campaignsQuery  = campaignsQuery;
     _settingsQuery   = settingsQuery;
     _settingsCommand = settingsCommand;
     _emailsCommand   = emailsCommand;
     _from            = new EmailUser(returnAddress, returnDisplayName, null);
 }
Пример #3
0
        protected static void GetCriterias(ICampaignsQuery campaignsQuery, params Campaign[] campaigns)
        {
            // Get a corresponding criteria which should simply be equivalent to an empty criteria.

            foreach (var campaign in campaigns)
            {
                var criteria = campaignsQuery.GetCriteria(campaign.Id);
                Assert.IsNotNull(criteria);
            }
        }
Пример #4
0
 public CampaignsController(ICampaignsCommand campaignsCommand, ICampaignsQuery campaignsQuery, ICampaignEmailsCommand campaignEmailsCommand, ICampaignCriteriaCommand campaignCriteriaCommand, ISettingsQuery settingsQuery, IIndustriesQuery industriesQuery, ICommunitiesQuery communitiesQuery, IAdministratorsQuery administratorsQuery, ILoginCredentialsQuery loginCredentialsQuery, IEmployersQuery employersQuery, IMembersQuery membersQuery, ILocationQuery locationQuery)
 {
     _campaignsCommand        = campaignsCommand;
     _campaignsQuery          = campaignsQuery;
     _campaignEmailsCommand   = campaignEmailsCommand;
     _campaignCriteriaCommand = campaignCriteriaCommand;
     _settingsQuery           = settingsQuery;
     _industriesQuery         = industriesQuery;
     _communitiesQuery        = communitiesQuery;
     _administratorsQuery     = administratorsQuery;
     _loginCredentialsQuery   = loginCredentialsQuery;
     _employersQuery          = employersQuery;
     _membersQuery            = membersQuery;
     _locationQuery           = locationQuery;
 }