public void ShouldSendConfirmationOfRegistrationToAccommodationSupplier()
 {
     var fakeSender = MockRepository.GenerateMock<ISendEmails>();
     var handler = new SendAccSupplierRegistrationEmail(fakeSender);
     handler.Handle(new AccommodationSupplierCreated
         {
             Name = "Somebody"
         });
     fakeSender.AssertWasCalled(emails => emails.SendEmail(Arg<string>.Is.Anything, Arg<string>.Is.Anything));
 }
Пример #2
0
        public void ShouldSendConfirmationOfRegistrationToAccommodationSupplier()
        {
            var fakeSender = MockRepository.GenerateMock <ISendEmails>();
            var handler    = new SendAccSupplierRegistrationEmail(fakeSender);

            handler.Handle(new AccommodationSupplierCreated
            {
                Name = "Somebody"
            });
            fakeSender.AssertWasCalled(emails => emails.SendEmail(Arg <string> .Is.Anything, Arg <string> .Is.Anything));
        }