示例#1
0
        public async Task ShouldHandleNewItem()
        {
            var helper = new ShoppingCartHelper();

            var unitOfWork = AppObjectFactory.GetContainer().GetInstance <IUnitOfWork>();
            await helper.AddToCartAsync(unitOfWork.Set <Product>().First(), 2, unitOfWork.Set <User>().First(),
                                        unitOfWork);
        }