Update AddItemToBasket.cs
This commit is contained in:
@@ -14,7 +14,7 @@ namespace Microsoft.eShopWeb.UnitTests.ApplicationCore.Services.BasketServiceTes
|
|||||||
private readonly Mock<IRepository<Basket>> _mockBasketRepo = new();
|
private readonly Mock<IRepository<Basket>> _mockBasketRepo = new();
|
||||||
|
|
||||||
[Fact]
|
[Fact]
|
||||||
public async Task InvokesBasketRepositoryFirstOrDefaultAsyncOnce()
|
public async Task InvokesBasketRepositoryGetBySpecAsyncOnce()
|
||||||
{
|
{
|
||||||
var basket = new Basket(_buyerId);
|
var basket = new Basket(_buyerId);
|
||||||
basket.AddItem(1, It.IsAny<decimal>(), It.IsAny<int>());
|
basket.AddItem(1, It.IsAny<decimal>(), It.IsAny<int>());
|
||||||
|
|||||||
Reference in New Issue
Block a user