public void HumonRepositoryRetrievesExistingUserWithGateRightId1()
        {
            //Assign
            HumanRepository humanRepository = new HumanRepository();
            //Act
            Human human    = humanRepository.Retrieve(5);
            bool  hasRight = human.HasRight(3);

            //Assert
            Assert.IsNotNull(human);
            Assert.IsTrue(hasRight);
        }
Ejemplo n.º 2
0
        List <ReportEvents> GenerateTotalEvents()
        {
            List <ReportEvents> report = new List <ReportEvents>();

            foreach (var ivykis  in _ivykiai)
            {
                ReportEvents reportEvent = new ReportEvents();
                reportEvent.HumanName = _humanRepository.Retrieve(ivykis.HumanId).Name;
                reportEvent.Gate      = _gateRepository.Retrieve().Where(x => x.Id == ivykis.GateId).FirstOrDefault().Code;
                reportEvent.Date      = ivykis.Date;
                //reportEvent.
            }
            return(null);
        }