Steve Smith
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
tests/UnitTests/ApplicationCore/Services/BasketServiceTests/AddItemToBasket.cs
|
|
@ -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>()); |
|
|
|