示例#1
0
        public void BuildEmailFromTest_email_email_matches()
        {
            var registrant = new RegistrantDb {
                Sender = "*****@*****.**"
            };

            _worker = new RegistrantMessageWorker(_message, registrant);
            _worker.BuildEmailFrom();
            Assert.Equal(registrant.Sender, _message.From.Email);
        }
示例#2
0
        public void BuildEmailFromTest_no_email_email_default()
        {
            var registrant            = new RegistrantDb {
            };
            const string defaultEmail = "*****@*****.**";

            _worker = new RegistrantMessageWorker(_message, registrant);
            _worker.BuildEmailFrom();
            Assert.Equal(_message.From.Email, defaultEmail);
        }