Skip to content

Commit 1906178

Browse files
committed
Get_Product_List refactored
1 parent 0282954 commit 1906178

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/AspnetRun.Application.Tests/Services/ProductTests.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ public async Task Get_Product_List()
3232
var product1 = Product.Create(It.IsAny<int>(), category.Id, It.IsAny<string>());
3333
var product2 = Product.Create(It.IsAny<int>(), category.Id, It.IsAny<string>());
3434

35-
category.AddProduct(product1.Id, It.IsAny<string>());
36-
category.AddProduct(product2.Id, It.IsAny<string>());
35+
//category.AddProduct(product1.Id, It.IsAny<string>());
36+
//category.AddProduct(product2.Id, It.IsAny<string>());
3737

3838
_mockCategoryRepository.Setup(x => x.GetByIdAsync(It.IsAny<int>())).ReturnsAsync(category);
3939
_mockProductRepository.Setup(x => x.GetByIdAsync(It.IsAny<int>())).ReturnsAsync(product1);

0 commit comments

Comments
 (0)