-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #72 from Livl-Corporation/jvm/feat/26-notification…
…-review-received refactor(review/request): notification review received and tell don't ask
- Loading branch information
Showing
19 changed files
with
106 additions
and
98 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,12 @@ | ||
using LivlReviews.Domain.Domain_interfaces_output; | ||
using LivlReviews.Domain.Entities; | ||
using LivlReviews.Domain.Enums; | ||
using LivlReviews.Domain.Test.Clock; | ||
|
||
namespace LivlReviews.Domain.Test.Stubs; | ||
namespace LivlReviews.Domain.Test.Fakes; | ||
|
||
public class FakeReviewInventory(Request request, IClock clock) : IReviewInventory | ||
public class FakeReviewInventory() : IReviewInventory | ||
{ | ||
public bool IsReviewableDateReached(int requestId) | ||
{ | ||
return request.Id == requestId && clock.Now >= request.ReviewableAt; | ||
} | ||
|
||
public Review CreateReview(Review review) | ||
{ | ||
return review; | ||
} | ||
|
||
public bool HasStatusReceived(int requestId) | ||
{ | ||
return request.Id == requestId && request.State == RequestState.Received; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
LivlReviews.Domain.Test/Clock/IClock.cs → ...Domain/Domain_interfaces_output/IClock.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
using LivlReviews.Domain.Domain_interfaces_output; | ||
|
||
namespace LivlReviews.Domain.Models; | ||
|
||
public class Clock : IClock | ||
{ | ||
public DateTime Now => DateTime.Now; | ||
} |
4 changes: 3 additions & 1 deletion
4
LivlReviews.Domain.Test/Clock/FakeClock.cs → LivlReviews.Domain/Models/FakeClock.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.