Skip to content
This repository has been archived by the owner on May 23, 2024. It is now read-only.

Commit

Permalink
Updated Result for nullable results as well and remove warning
Browse files Browse the repository at this point in the history
  • Loading branch information
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
Expand Up @@ -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);


Expand Down Expand Up @@ -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());
Expand Down

0 comments on commit 09dfcba

Please sign in to comment.