public void cart_change_user()
        {
            Cart cart = new Cart();
            User user = new User();
            cart.ChangeUser(user);

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