Device class is now more easy to mock.
What i did to accomplish that is just remove all the static variables from the class.
I also made the class more swift like.
Another good point is that now the InformationsTableViewController has his own device instance, and this makes it more easy to test, with a snapshot test for example, but also with UI tests, with mocked Device class
Device class is now more easy to mock. What i did to accomplish that is just remove all the static variables from the class. I also made the class more swift like. Another good point is that now the
InformationsTableViewController
has his own device instance, and this makes it more easy to test, with a snapshot test for example, but also with UI tests, with mockedDevice
class