Beispiel #1
0
        public void CallsConfirmationMethod()
        {
            _fakeUsermanager.CanSubmitProp = true;
            _service.Submit(1, "testRole");
            var confirmCalled = _fakeUsermanager.CalledConfirmation == 1;

            Assert.IsTrue(confirmCalled);
        }
        public SubmitResult Submit(int userId)
        {
            var user   = _unregisteredUsers.First(u => u.UserId == userId);
            var result = _client.Submit(userId, user.Role);

            return(result);
        }