예제 #1
0
            public void WhenValidateActionGetsCalled()
            {
                Setup();

                var action = new Models.Action()
                {
                    ActionType = ActionType.None,
                    Completed  = true,
                    ExpiresAt  = DateTime.UtcNow.AddMinutes(-1)
                };

                _errors = ActionValidator.ValidateAction(action, ActionType.ResetPassword);
            }
예제 #2
0
            public void WhenValidateActionGetsCalled()
            {
                Setup();

                _errors = ActionValidator.ValidateAction(null, ActionType.ResetPassword);
            }