コード例 #1
0
        public async System.Threading.Tasks.Task testCartAddAsync()
        {
            var fakeRepository = Mock.Of <ICartsRepository>();
            var cartService    = new CartsService(fakeRepository);

            var cart = new Cart()
            {
                Id = "test"
            };
            await cartService.AddAndSave(cart);
        }