Esempio n. 1
0
        public async Task CanPrepareLogoModel()
        {
            var model = await _commonModelFactory.PrepareLogoModelAsync();

            model.StoreName.Should().NotBeNullOrEmpty();
            model.StoreName.Should().Be("Your store name");
            model.LogoPath.Should().NotBeNullOrEmpty();
            model.LogoPath.Should()
            .Be($"http://{NopTestsDefaults.HostIpAddress}/Themes/DefaultClean/Content/images/logo.png");
        }
Esempio n. 2
0
        public async Task <IViewComponentResult> InvokeAsync()
        {
            var model = await _commonModelFactory.PrepareLogoModelAsync();

            return(View(model));
        }