Exemplo n.º 1
0
        public async Task AssertForbidden <T>(Func <Mock <IUserService>, Task <Either <ActionResult, T> > > action)
        {
            var result = await action.Invoke(_userService);

            MockUtils.VerifyAllMocks(_userService);

            PermissionTestUtils.AssertForbidden(result);
        }
        public async void AssertForbidden <T>(Func <Mock <IUserService>, Task <Either <ActionResult, T> > > action)
        {
            var result = await action.Invoke(_userService);

            PermissionTestUtils.AssertForbidden(result);

            _userService.VerifyAll();
            _userService.VerifyNoOtherCalls();
        }