Пример #1
0
        public void HasLevel_ExpectsOk()
        {
            sessionRepository.Setup(x => x.FirstOrDefault(It.IsAny <Expression <Func <SessionEntity, bool> > >())).Returns(testSessionEntity);
            userRepository.Setup(u => u.Exists(It.IsAny <Expression <Func <UserEntity, bool> > >())).Returns(true);

            sessionLogic.HasLevel(testSessionEntity.Token, new List <string>()
            {
                "admin"
            });

            unitOfWork.VerifyAll();
        }