You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
O objetivo desta issue é trazer mais testabilidade com as seguintes alterações:
Extrair interface de ApiResource.
APIs passam a ser compostas por uma interface IApiResource
Remove herança de ApiResource
Ex:
// Atualmente publicclassCustomer:APIResource{publicCustomer(){BaseURI+="/customers";}}// Depois publicclassCustomer:IDisposable{privatereadonlyIApiResource_client;publicCustomer(IApiResourceclient):this(){_client=client;}protectedCustomer(){_client=_client??newApiResource();_client.BaseURI+="/customers";}publicvoidDispose(){_client.Dispose();GC.SuppressFinalize(this);}}
The text was updated successfully, but these errors were encountered:
O objetivo desta issue é trazer mais testabilidade com as seguintes alterações:
Ex:
The text was updated successfully, but these errors were encountered: