Esempio n. 1
0
        public void Arrange()
        {
            _commitmentsApi = new Mock <IEmployerCommitmentApi>();
            _commitmentsApi.Setup(
                x => x.GetEmployerApprenticeships(It.IsAny <long>(), It.IsAny <ApprenticeshipSearchQuery>()))
            .ReturnsAsync(new ApprenticeshipSearchResponse
            {
                Apprenticeships      = new List <Apprenticeship>(),
                PageNumber           = 2,
                PageSize             = 10,
                TotalApprenticeships = 100
            });

            _handler = new ApprenticeshipSearchQueryHandler(_commitmentsApi.Object, Mock.Of <IHashingService>());
        }