Skip to content

Commit

Permalink
Updated Result for nullable results as well and remove warning
Browse files Browse the repository at this point in the history
Srushti Pasari94 committed Sep 20, 2023
1 parent 9ac2e4a commit 09dfcba
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -37,7 +37,7 @@ public async Task InvokesBasketRepositoryFirstOrDefaultAsyncOnceIfAnonymousBaske
var anonymousBasket = null as Basket;
var userBasket = new Basket(_existentUserBasketBuyerId);

var results = new Results<Basket>(anonymousBasket)
var results = new Results<Basket?>(anonymousBasket)
.Then(userBasket);


@@ -93,7 +93,7 @@ public async Task CreatesNewUserBasketIfNotExists()
var anonymousBasket = new Basket(_existentAnonymousBasketBuyerId);
var userBasket = null as Basket;

var results = new Results<Basket>(anonymousBasket)
var results = new Results<Basket?>(anonymousBasket)
.Then(userBasket);

_mockBasketRepo.FirstOrDefaultAsync(Arg.Any<BasketWithItemsSpecification>(), default).Returns(x => results.Next());

0 comments on commit 09dfcba

Please sign in to comment.