VenusInterns / BlogTemplate

MIT License
208 stars 38 forks source link

Mocking Tests #149

Open lucasisaza opened 7 years ago

lucasisaza commented 7 years ago

Need to use mocks to write tests for #89 Single User Registration since testing an implementation of identity requires that we write a lot (too many) fakes that it would be easier to mock. This is something that needs to be done at some point in order for the test to pass.

The specific test we are trying to pass is RegisterUser_FirstUser_LocalRedirect() which will register the first user and assure that they get registered correctly. In order to do so we need to create multiple fakes that would be much easier to do if we used mocks.