Beispiel #1
0
        public void Context()
        {
            _recipientOne = new Recipient(EmailAddressOne, "name1");
            UnitOfWork.Save(_recipientOne);

            _recipientTwo = new Recipient(EmailAddressTwo, "name2");
            UnitOfWork.Save(_recipientTwo);

            var queryHandler = new GetExistingRecipientsQueryHandler(UnitOfWork);

            _result = queryHandler.Execute <Recipient>(new GetExistingRecipientsQuery
            {
                RecipientEmailAddresses = new[]
                {
                    EmailAddressOne,
                    EmailAddressTwo,
                    EmailAddressThree
                }
            });
        }
 protected override void PersistenceQuery()
 {
     var query = new GetExistingRecipientsQueryHandler();
     _result = query.Execute<Recipient>(new GetExistingRecipientsQuery { RecipientEmailAddresses = new[] { EmailAddressOne, EmailAddressTwo, EmailAddressThree } });
 }