private async Task CreateTest() { var fakeRepository = Mock.Of <IUserRepository>(); var playerService = new UserServices(fakeRepository); var player = new User() { UserId = 3 }; await playerService.AddAndSave(player); }