fix ViewResult (importing namespace)
This commit is contained in:
parent
a846f041cd
commit
4c530da377
@ -1,5 +1,4 @@
|
|||||||
using Microsoft.AspNetCore.Mvc;
|
using Microsoft.eShopOnContainers.WebMVC.Controllers;
|
||||||
using Microsoft.eShopOnContainers.WebMVC.Controllers;
|
|
||||||
using Microsoft.eShopOnContainers.WebMVC.Services;
|
using Microsoft.eShopOnContainers.WebMVC.Services;
|
||||||
using Microsoft.eShopOnContainers.WebMVC.ViewModels;
|
using Microsoft.eShopOnContainers.WebMVC.ViewModels;
|
||||||
using Microsoft.eShopOnContainers.WebMVC.ViewModels.CatalogViewModels;
|
using Microsoft.eShopOnContainers.WebMVC.ViewModels.CatalogViewModels;
|
||||||
@ -8,6 +7,7 @@ using System.Collections.Generic;
|
|||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using Xunit;
|
using Xunit;
|
||||||
using CatalogModel = Microsoft.eShopOnContainers.WebMVC.ViewModels.Catalog;
|
using CatalogModel = Microsoft.eShopOnContainers.WebMVC.ViewModels.Catalog;
|
||||||
|
using ViewResult = Microsoft.AspNetCore.Mvc.ViewResult;
|
||||||
|
|
||||||
namespace UnitTest.Catalog.Application
|
namespace UnitTest.Catalog.Application
|
||||||
{
|
{
|
||||||
@ -16,9 +16,7 @@ namespace UnitTest.Catalog.Application
|
|||||||
private readonly Mock<ICatalogService> _catalogServiceMock;
|
private readonly Mock<ICatalogService> _catalogServiceMock;
|
||||||
|
|
||||||
public CatalogControllerTest()
|
public CatalogControllerTest()
|
||||||
{
|
=> _catalogServiceMock = new Mock<ICatalogService>();
|
||||||
_catalogServiceMock = new Mock<ICatalogService>();
|
|
||||||
}
|
|
||||||
|
|
||||||
[Fact]
|
[Fact]
|
||||||
public async Task Get_catalog_items_success()
|
public async Task Get_catalog_items_success()
|
||||||
@ -57,8 +55,7 @@ namespace UnitTest.Catalog.Application
|
|||||||
}
|
}
|
||||||
|
|
||||||
private CatalogModel GetFakeCatalog()
|
private CatalogModel GetFakeCatalog()
|
||||||
{
|
=> new CatalogModel()
|
||||||
return new CatalogModel()
|
|
||||||
{
|
{
|
||||||
PageSize = 10,
|
PageSize = 10,
|
||||||
Count = 50,
|
Count = 50,
|
||||||
@ -86,5 +83,4 @@ namespace UnitTest.Catalog.Application
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user