예제 #1
0
        public async Task CreateGift_Rendered()
        {
            _cartManager.CreateNewCart(CreateFakeUser(_context));
            var result = await _controller.CreateGift();

            Assert.IsInstanceOf <RedirectToActionResult>(result);
            Assert.IsNotNull(result);

            _context.Database.EnsureDeleted();
        }