Exemple #1
0
        private ReminderController GetTestableReminderController()
        {
            var controller = new ReminderController(_mockUserServices.Object, _serviceLocator.Object);

            controller.SetFakeControllerContext();
            controller.SetUserIdentity(new MileageStatsIdentity(_defaultUser.AuthorizationId,
                                                                _defaultUser.DisplayName,
                                                                _defaultUser.UserId));
            return(controller);
        }