Annonator / PlayFabBuddy

A collection of useful stuff to make PlayFab development easier
MIT License
14 stars 2 forks source link

Make Repositories Unit Testable #21

Open Annonator opened 2 years ago

Annonator commented 2 years ago

Right now, the repositories can't be tested as they have a File IO dependencies. In order to make it test able we need an abstraction / wrapper to be able to mock file IO in our unit tests.

Structed commented 2 years ago

This also relates to PlayFab API calls - those are currently only very difficult to test. Current players commands currently use the static PlayFab API clients, instead of the instance API.

See #52 for an example on using the instance API.

Annonator commented 2 years ago

Let's focus on making the local repository testable for a start in this Issue :)

Structed commented 2 years ago

Let's focus on making the local repository testable for a start in this Issue :)

Jup, just mentioning :-)