Ejemplo n.º 1
0
        public void SendOrderConfirmation_sends_email()
        {
            const string content = "Email Content";
            var          order   = new Order()
            {
                Email = "*****@*****.**"
            };

            builder.Expect(x => x.GetEmailContent(Arg <string> .Is.Equal("OrderConfirmation"), Arg <IDictionary <string, object> > .Is.Anything)).Return(content);
            service.SendOrderConfirmation(order);

            sender.AssertWasCalled(x => x.Send(new[] { order.Email, baseControllerService.EmailAddress }, "Suteki Shop: your order", content, true));
        }