Start act upon newly addederror events coming from Exchange.
Adding that complicated the existing Aprb.Views.CommerceSlackView so ended up separating that file to multiple view files for different types of slack messages.
Extra (or you could call it technical debt)
Added missing tests for order views. Still adding more but this should be good to review.
Dependency Injection?!
For adding tests for view layer, we had to mock few Gravity calls so ended up following this dependency injection approach so now in test mode we use GravityMock and in other cases we use Gravity for fetching data from Gravity.
Problem
https://artsyproduct.atlassian.net/browse/PURCHASE-958
Solution
Start act upon newly added
error
events coming from Exchange.Adding that complicated the existing
Aprb.Views.CommerceSlackView
so ended up separating that file to multiple view files for different types of slack messages.Extra (or you could call it technical debt)
Added missing tests for order views. Still adding more but this should be good to review.
Dependency Injection?!
For adding tests for view layer, we had to mock few Gravity calls so ended up following this dependency injection approach so now in test mode we use
GravityMock
and in other cases we useGravity
for fetching data from Gravity.Selfie