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"); }
public async Task <IViewComponentResult> InvokeAsync() { var model = await _commonModelFactory.PrepareLogoModelAsync(); return(View(model)); }