Shady nagy/net6 (#614)
* udated to .net6 * used the .net6 version RC2 * added editconfig. * App core new Scoped Namespaces style. * BlazorAdmin new Scoped Namespaces style. * Blazor Shared new Scoped Namespaces style. * Infra new Scoped Namespaces style. * public api new Scoped Namespaces style. * web new Scoped Namespaces style. * FunctionalTests new Scoped Namespaces style. * Integrational tests new Scoped Namespaces style. * unit tests new Scoped Namespaces style. * update github action. * update github action. * change the global.
This commit is contained in:
@@ -1,16 +1,15 @@
|
||||
using Microsoft.eShopWeb.Web.Extensions;
|
||||
using Xunit;
|
||||
|
||||
namespace Microsoft.eShopWeb.UnitTests.Web.Extensions.CacheHelpersTests
|
||||
{
|
||||
public class GenerateBrandsCacheKey
|
||||
{
|
||||
[Fact]
|
||||
public void ReturnsBrandsCacheKey()
|
||||
{
|
||||
var result = CacheHelpers.GenerateBrandsCacheKey();
|
||||
namespace Microsoft.eShopWeb.UnitTests.Web.Extensions.CacheHelpersTests;
|
||||
|
||||
Assert.Equal("brands", result);
|
||||
}
|
||||
public class GenerateBrandsCacheKey
|
||||
{
|
||||
[Fact]
|
||||
public void ReturnsBrandsCacheKey()
|
||||
{
|
||||
var result = CacheHelpers.GenerateBrandsCacheKey();
|
||||
|
||||
Assert.Equal("brands", result);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,20 +2,19 @@
|
||||
using Microsoft.eShopWeb.Web.Extensions;
|
||||
using Xunit;
|
||||
|
||||
namespace Microsoft.eShopWeb.UnitTests.Web.Extensions.CacheHelpersTests
|
||||
namespace Microsoft.eShopWeb.UnitTests.Web.Extensions.CacheHelpersTests;
|
||||
|
||||
public class GenerateCatalogItemCacheKey
|
||||
{
|
||||
public class GenerateCatalogItemCacheKey
|
||||
[Fact]
|
||||
public void ReturnsCatalogItemCacheKey()
|
||||
{
|
||||
[Fact]
|
||||
public void ReturnsCatalogItemCacheKey()
|
||||
{
|
||||
var pageIndex = 0;
|
||||
int? brandId = null;
|
||||
int? typeId = null;
|
||||
var pageIndex = 0;
|
||||
int? brandId = null;
|
||||
int? typeId = null;
|
||||
|
||||
var result = CacheHelpers.GenerateCatalogItemCacheKey(pageIndex, Constants.ITEMS_PER_PAGE, brandId, typeId);
|
||||
var result = CacheHelpers.GenerateCatalogItemCacheKey(pageIndex, Constants.ITEMS_PER_PAGE, brandId, typeId);
|
||||
|
||||
Assert.Equal("items-0-10--", result);
|
||||
}
|
||||
Assert.Equal("items-0-10--", result);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,16 +1,15 @@
|
||||
using Microsoft.eShopWeb.Web.Extensions;
|
||||
using Xunit;
|
||||
|
||||
namespace Microsoft.eShopWeb.UnitTests.Web.Extensions.CacheHelpersTests
|
||||
{
|
||||
public class GenerateTypesCacheKey
|
||||
{
|
||||
[Fact]
|
||||
public void ReturnsTypesCacheKey()
|
||||
{
|
||||
var result = CacheHelpers.GenerateTypesCacheKey();
|
||||
namespace Microsoft.eShopWeb.UnitTests.Web.Extensions.CacheHelpersTests;
|
||||
|
||||
Assert.Equal("types", result);
|
||||
}
|
||||
public class GenerateTypesCacheKey
|
||||
{
|
||||
[Fact]
|
||||
public void ReturnsTypesCacheKey()
|
||||
{
|
||||
var result = CacheHelpers.GenerateTypesCacheKey();
|
||||
|
||||
Assert.Equal("types", result);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user