public void GetPupilProfileById_Test_Is_Generete_Exeption_If_Id_less_zero()
        {
            //Arrange
            var logger = new Mock<ILogger>();
            var iUnitOfWork = new Mock<IUnitOfWork>();
            var iPupilRepository = new Mock<IRepository<Pupil>>();
            var iAccountService = new Mock<IAccountService>();
            var iGroupService = new Mock<IGroupService>();

            iUnitOfWork.Setup(st => st.PupilRepository).Returns(iPupilRepository.Object);
            var pupilService = new PupilService(logger.Object, iUnitOfWork.Object, iAccountService.Object, iGroupService.Object);
            int anyIdLessZero = -2;
            //Act
            var teacher = pupilService.GetProfileById(anyIdLessZero);
            //Assert
            iPupilRepository.Verify(inv => inv.GetById(anyIdLessZero), Times.Once);
        }
        public void GetPupilProfileById_Test_Is_Invoke_Repo_GetById()
        {
            //Arrange
            var logger = new Mock<ILogger>();
            var iUnitOfWork = new Mock<IUnitOfWork>();
            var iPupilRepository = new Mock<IRepository<Pupil>>();
            var iAccountService = new Mock<IAccountService>();
            var iGroupService = new Mock<IGroupService>();

            iUnitOfWork.Setup(st => st.PupilRepository).Returns(iPupilRepository.Object);
            iPupilRepository.Setup(inv => inv.GetById(It.Is<int>(i => i > 0))).Returns(this.pupil);
            var pupilService = new PupilService(logger.Object, iUnitOfWork.Object, iAccountService.Object, iGroupService.Object);

            int anyIdMoreZero = 3;
            //Act
            pupilService.GetProfileById(anyIdMoreZero);
            //Assert
            iPupilRepository.Verify(inv => inv.GetById(anyIdMoreZero), Times.Once);
        }