Exemple #1
0
        public async Task CanPrepareCheckoutProgressModel()
        {
            foreach (var step in Enum.GetValues(typeof(CheckoutProgressStep)).Cast <CheckoutProgressStep>())
            {
                var model = await _checkoutModelFactory.PrepareCheckoutProgressModelAsync(step);

                model.CheckoutProgressStep.Should().Be(step);
            }
        }
        public async Task <IViewComponentResult> InvokeAsync(CheckoutProgressStep step)
        {
            var model = await _checkoutModelFactory.PrepareCheckoutProgressModelAsync(step);

            return(View(model));
        }