Пример #1
0
        public void cart_change_user()
        {
            Cart cart = new Cart();
            User user = new User();
            cart.ChangeUser(user);

            Assert.AreEqual(cart.AppliedEvents.Count(), 1);
        }
Пример #2
0
 public void ChangeUser (User user)
 {
     User = user;
     ApplyEvent(new CartUserChanged()
     {
         CartId = Id,
         User = user
     });
 }