public void AddWishListItemToUser()
        {
            var id             = new UserId(Guid.NewGuid());
            var email          = "*****@*****.**";
            var metroId        = 11;
            var wishlistItemId = new WishListItemId(Guid.NewGuid());
            var restoId        = new RestaurantId(Guid.NewGuid());

            new CommandScenarioFor <User>(User.Factory)
            .Given(UserEvents.Created(email, id, metroId, false))
            .When(user => user.AddWishListItem(id, wishlistItemId, restoId, "some notes"))
            .Then(UserEvents.WishListItemAdded(id, wishlistItemId, restoId, "some notes"))
            .Assert();
        }
        public void AddWishListItemToUser()
        {
            var id = new UserId(Guid.NewGuid());
            var email = "*****@*****.**";
            var metroId = 11;
            var wishlistItemId = new WishListItemId(Guid.NewGuid());
            var restoId = new RestaurantId(Guid.NewGuid());

            new CommandScenarioFor<User>(User.Factory)
            .Given(UserEvents.Created(email, id, metroId, false))
            .When(user => user.AddWishListItem(id, wishlistItemId, restoId, "some notes"))
            .Then(UserEvents.WishListItemAdded(id, wishlistItemId, restoId, "some notes"))
            .Assert();
        }
 public static UserHasNewWishListItem WishListItemAdded(UserId userId, WishListItemId wishlistItemId,
                                                        RestaurantId restoId, string notes)
 {
     return(new UserHasNewWishListItem(userId, wishlistItemId, restoId, notes));
 }
 public static UserHasNewWishListItem WishListItemAdded(UserId userId, WishListItemId wishlistItemId, 
     RestaurantId restoId, string notes)
 {
     return new UserHasNewWishListItem(userId, wishlistItemId, restoId, notes);
 }