Code level testing (activate)

 


D:\development\SanaPlatform\Sana.Platform.Portal\Scripts\Portal\Webstore\webstore.AllWebstores.js

it will call  url: "/Webstore/Retry",

Sana.Platform.Portal\Controllers\WebstoreController.cs > Retry(int webstoreId)


Sana.Platform.Portal\Controllers\APIControllers\WebstoreApiController.cs > Retry(int webstoreId)


Sana.Platform.Business\Portal\Implementation\WebstoreService.cs >  Retry(int storeId)


request will be add as a item on Azure queue.

Sana.Platform.Business\Infrastructure\AzureStorageQueue.cs















Code level testing (deactivate)

 

Test deactivate 

When Click deactivate button  -->
img1


 
1/Sana.Platform.Portal\Scripts\Portal\ApprovalRequest\webstore.WebstoreDeactivate.Index.js

url: "/Approval/UpdateWebstoreDeactivationApprovalFeedBack",


img2


2/when click "Are you sure you want to deactivate popup" yes > go to Approval section (img2)

When Click Approval section > Deactivate  (img2)

Approval controller /WebstoreDeactivateRequests.cs

ApproveApiController/GetWebstoreDeactivationRequests()

img3


3/if click Approve or Reject

Approval controller /UpdateWebstoreDeactivationApprovalFeedBack

ApproveApiController/ProcessWebstoreDeactivationRequest

WebstoreDeactivationApprovalProvider/ApproveOrRejectChangeRequestAsync


4/then it will go to queue (pending list)

need run Job To Deactivate 

D:\development\SanaPlatform\Sana.Platform.Jobs\Task\Sana.Platform.Jobs.DeactivateWebstore




right click > Debug > New Instance

it will run Deactivatewebstore.exe on the console.

if there are any queue (pending list) items it will run automatically.

Application > Run() method.