Refactored MockUser to MockRepository