Migrated some tests to use System.Text.Json (#385)
* Migrated some tests to use System.Text.Json * Added case insensitive json options to fix broken tests.
This commit is contained in:
@@ -57,9 +57,9 @@ namespace Microsoft.eShopWeb.Web.Services
|
||||
Name = i.Name,
|
||||
PictureUri = _uriComposer.ComposePicUri(i.PictureUri),
|
||||
Price = i.Price
|
||||
}),
|
||||
Brands = await GetBrands(),
|
||||
Types = await GetTypes(),
|
||||
}).ToList(),
|
||||
Brands = (await GetBrands()).ToList(),
|
||||
Types = (await GetTypes()).ToList(),
|
||||
BrandFilterApplied = brandId ?? 0,
|
||||
TypesFilterApplied = typeId ?? 0,
|
||||
PaginationInfo = new PaginationInfoViewModel()
|
||||
|
||||
@@ -5,9 +5,9 @@ namespace Microsoft.eShopWeb.Web.ViewModels
|
||||
{
|
||||
public class CatalogIndexViewModel
|
||||
{
|
||||
public IEnumerable<CatalogItemViewModel> CatalogItems { get; set; }
|
||||
public IEnumerable<SelectListItem> Brands { get; set; }
|
||||
public IEnumerable<SelectListItem> Types { get; set; }
|
||||
public List<CatalogItemViewModel> CatalogItems { get; set; }
|
||||
public List<SelectListItem> Brands { get; set; }
|
||||
public List<SelectListItem> Types { get; set; }
|
||||
public int? BrandFilterApplied { get; set; }
|
||||
public int? TypesFilterApplied { get; set; }
|
||||
public PaginationInfoViewModel PaginationInfo { get; set; }
|
||||
|
||||
@@ -34,6 +34,7 @@
|
||||
</PackageReference>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Folder Include="Catalog\" />
|
||||
<Folder Include="wwwroot\fonts\" />
|
||||
<Folder Include="wwwroot\lib\" />
|
||||
</ItemGroup>
|
||||
|
||||
Reference in New Issue
Block a user