Xablu.WebApiClient icon indicating copy to clipboard operation
Xablu.WebApiClient copied to clipboard

Unit Testing

Open nmilcoff opened this issue 5 years ago • 0 comments

We want to create Unit Tests to our library. In order to do so, we need to do an initial setup:

  • [x] Create a new .NET Core project for Unit Testing
  • [x] Setup xUnit and Moq

We will test the following components:

  • [ ] IWebApiClient / WebApiClient
    • [ ] Test different fusillade priorities work as expected
    • [ ] Test configuring the values for RequestOptions work as expected (retry, timeout, ...)
    • [ ] Test default values are used when no RequestOptions is set
    • [ ] Test shouldRetry condition works as expected
  • [ ] IRefitService<T> / RefitService<T>
    • [ ] To be decided

nmilcoff avatar Sep 13 '19 00:09 nmilcoff