public void Arrange() { _fixture = new Fixture(); _applicationService = new Mock <IApplicationService>(); _legalEntitiesService = new Mock <ILegalEntitiesService>(); _hashingService = new Mock <IHashingService>(); _validator = new Mock <IEmploymentStartDateValidator>(); _mockConfiguration = new Mock <IOptions <ExternalLinksConfiguration> >(); _sut = new ApplyEmploymentDetailsController(_applicationService.Object, _legalEntitiesService.Object, _hashingService.Object, _validator.Object, _mockConfiguration.Object); _accountId = _fixture.Create <string>(); _applicationId = Guid.NewGuid(); }
public void Arrange() { _fixture = new Fixture(); _applicationService = new Mock <IApplicationService>(); _legalEntitiesService = new Mock <ILegalEntitiesService>(); _hashingService = new Mock <IHashingService>(); _validator = new Mock <IEmploymentStartDateValidator>(); _mockConfiguration = new Mock <IOptions <ExternalLinksConfiguration> >(); _manageApprenticeshipSiteUrl = $"http://{Guid.NewGuid()}"; _mockConfiguration.Setup(m => m.Value).Returns(new ExternalLinksConfiguration { ManageApprenticeshipSiteUrl = _manageApprenticeshipSiteUrl }); _sut = new ApplyEmploymentDetailsController(_applicationService.Object, _legalEntitiesService.Object, _hashingService.Object, _validator.Object, _mockConfiguration.Object); }