public void Before_each_test()
        {
            _repository = new Mock <ILookupDataRepository>();
            var organisationTypes = new List <OrganisationType>
            {
                new OrganisationType
                {
                    Id   = 1,
                    Type = "College"
                },
                new OrganisationType
                {
                    Id   = 2,
                    Type = "University"
                }
            };

            _repository.Setup(x => x.GetOrganisationTypesForProviderTypeId(It.IsAny <int>())).ReturnsAsync(organisationTypes);
            _logger    = new Mock <ILogger <GetOrganisationTypesHandler> >();
            _validator = new ProviderTypeValidator();
            _handler   = new GetOrganisationTypesHandler(_repository.Object, _logger.Object, _validator);
        }
        public void Setup()
        {
            RegisterQueryRepository = new Mock <IRegisterQueryRepository>();
            _organisationType1      = new AssessorService.Api.Types.Models.AO.OrganisationType {
                Id = 1, Type = "Type 1"
            };
            _organisationType2 = new AssessorService.Api.Types.Models.AO.OrganisationType {
                Id = 2, Type = "Another Type"
            };

            Logger = new Mock <ILogger <GetOrganisationTypesHandler> >();

            _expectedOrganisationTypes = new List <AssessorService.Api.Types.Models.AO.OrganisationType>
            {
                _organisationType1,
                _organisationType2
            };

            RegisterQueryRepository.Setup(r => r.GetOrganisationTypes())
            .Returns(Task.FromResult(_expectedOrganisationTypes.AsEnumerable()));

            GetOrganisationTypesHandler = new GetOrganisationTypesHandler(RegisterQueryRepository.Object, Logger.Object);
        }