예제 #1
0
            public void Assure_confirmation_message_is_sent_to_the_user()
            {
                var messageSenderMock = new MessageSenderMock();
                var shoppingCart = new ShoppingCart(new EmailMessageSenderAdapter());

                shoppingCart.PlaceOrder();

                Assert.AreEqual(1, messageSenderMock.SendCallCount);
            }
예제 #2
0
파일: Program.cs 프로젝트: ogborstad/Katas
        static void Main(string[] args)
        {
            var cart = new ShoppingCart(new EmailMessageSenderAdapter());

            cart.PlaceOrder();
        }