public void SetUp()
        {
            _fixture = new Fixture();
            _legalEntityServiceMock = new Mock <ILegalEntitiesService>();

            _sut = new ApplyOrganisationController(_legalEntityServiceMock.Object, Mock.Of <IOptions <ExternalLinksConfiguration> >());
        }
Ejemplo n.º 2
0
 public void SetUp()
 {
     _legalEntitiesService = new Mock <ILegalEntitiesService>();
     _configuration        = new Mock <IOptions <ExternalLinksConfiguration> >();
     _sut                 = new ApplyOrganisationController(_legalEntitiesService.Object, _configuration.Object);
     _fixture             = new Fixture();
     _accountId           = _fixture.Create <string>();
     _viewModel           = _fixture.Create <ChooseOrganisationViewModel>();
     _viewModel.AccountId = _accountId;
 }
        public void SetUp()
        {
            _fixture = new Fixture();
            _legalEntityServiceMock         = new Mock <ILegalEntitiesService>();
            _externalLinksConfigurationMock = new Mock <ExternalLinksConfiguration>();
            var mockOptions = new Mock <IOptions <ExternalLinksConfiguration> >();

            mockOptions.Setup(x => x.Value).Returns(_externalLinksConfigurationMock.Object);

            _sut = new ApplyOrganisationController(_legalEntityServiceMock.Object, mockOptions.Object);
        }