Esempio n. 1
0
        public void SetUp()
        {
            var subject   = new UserSessionService(null, null, null);
            var userToken = subject.NewUser();

            subject.SetBasketForUser(userToken, new Data.Services.UserSession.Basket {
                Total = Money.From(5000)
            });
            _result = subject.GetBasketForUser(userToken);
        }
        public void SetUp()
        {
            var subject   = new UserSessionService(null, null, null);
            var userToken = subject.NewUser();

            subject.SetBasketForUser("SOME_INVALID_USER_TOKEN", new ShoppingCart.Services.UserSession.Basket {
                Total = Money.From(5000)
            });

            _result = subject.GetBasketForUser(userToken);
        }