public async Task Setup()
        {
            await Database.ClearAsync().ConfigureAwait(false);

            await OrganisationEntityBuilder.Create()
            .WithId(_org1Id)
            .Build()
            .InsertAsync()
            .ConfigureAwait(false);

            await SupplierEntityBuilder.Create()
            .WithId(_supplierId)
            .WithOrganisation(_org1Id)
            .Build()
            .InsertAsync()
            .ConfigureAwait(false);

            await SolutionEntityBuilder.Create()
            .WithId(_solutionId1)
            .WithOrganisationId(_org1Id)
            .WithSupplierId(_supplierId)
            .Build()
            .InsertAsync()
            .ConfigureAwait(false);

            _testContext = new TestContext();

            _marketingContactRepository = _testContext.MarketingContactRepository;
        }
        public async Task Setup()
        {
            await Database.ClearAsync();

            await SupplierEntityBuilder.Create()
            .WithId(_supplierId)
            .Build()
            .InsertAsync();

            await CatalogueItemEntityBuilder
            .Create()
            .WithCatalogueItemId(_solutionId1)
            .WithName(_solutionId1)
            .WithPublishedStatusId((int)PublishedStatus.Published)
            .WithSupplierId(_supplierId)
            .Build()
            .InsertAsync();

            await SolutionEntityBuilder.Create()
            .WithId(_solutionId1)
            .Build()
            .InsertAsync();

            _testContext = new TestContext();

            _marketingContactRepository = _testContext.MarketingContactRepository;
        }
 public Scope(
     IMarketingContactRepository marketingContactRepository,
     ISolutionCapabilityRepository solutionCapabilityRepository,
     ISolutionEpicRepository solutionEpicRepository,
     ISolutionRepository solutionRepository,
     ISupplierRepository supplierRepository,
     IEpicRepository epicRepository,
     ISolutionEpicStatusRepository solutionEpicStatusRepository,
     IPriceRepository priceRepository,
     IAdditionalServiceRepository additionalServiceRepository,
     ICatalogueItemRepository catalogueItemRepository,
     IDbConnector dbConnector)
 {
     MarketingContactRepository   = marketingContactRepository;
     SolutionCapabilityRepository = solutionCapabilityRepository;
     SolutionEpicRepository       = solutionEpicRepository;
     SolutionRepository           = solutionRepository;
     SupplierRepository           = supplierRepository;
     EpicRepository = epicRepository;
     SolutionEpicStatusRepository = solutionEpicStatusRepository;
     PriceRepository             = priceRepository;
     AdditionalServiceRepository = additionalServiceRepository;
     CatalogueItemRepository     = catalogueItemRepository;
     DbConnector = dbConnector;
 }
Exemplo n.º 4
0
 public SolutionReader(ISolutionRepository solutionRepository,
                       ISolutionCapabilityRepository solutionCapabilityRepository,
                       IMarketingContactRepository contactRepository)
 {
     _solutionRepository           = solutionRepository;
     _solutionCapabilityRepository = solutionCapabilityRepository;
     _contactRepository            = contactRepository;
 }
 public Scope(IMarketingContactRepository marketingContactRepository,
              ISolutionCapabilityRepository solutionCapabilityRepository,
              ISolutionDetailRepository solutionDetailRepository,
              ISolutionRepository solutionRepository,
              IDbConnector dbConnector)
 {
     MarketingContactRepository   = marketingContactRepository;
     SolutionCapabilityRepository = solutionCapabilityRepository;
     SolutionDetailRepository     = solutionDetailRepository;
     SolutionRepository           = solutionRepository;
     DbConnector = dbConnector;
 }
Exemplo n.º 6
0
 public SolutionReader(ISolutionRepository solutionRepository,
                       ISolutionCapabilityRepository solutionCapabilityRepository,
                       IMarketingContactRepository contactRepository,
                       ISupplierRepository supplierRepository,
                       IDocumentRepository documentRepository,
                       ISolutionEpicRepository epicRepository)
 {
     _solutionRepository           = solutionRepository;
     _solutionCapabilityRepository = solutionCapabilityRepository;
     _contactRepository            = contactRepository;
     _supplierRepository           = supplierRepository;
     _documentRepository           = documentRepository;
     _epicRepository = epicRepository;
 }
Exemplo n.º 7
0
 public SolutionReader(
     ISolutionRepository solutionRepository,
     ISolutionCapabilityRepository solutionCapabilityRepository,
     IMarketingContactRepository contactRepository,
     ISupplierRepository supplierRepository,
     IDocumentRepository documentRepository,
     ISolutionEpicRepository epicRepository,
     ISolutionFrameworkRepository frameworkRepository)
 {
     this.solutionRepository           = solutionRepository;
     this.solutionCapabilityRepository = solutionCapabilityRepository;
     this.contactRepository            = contactRepository;
     this.supplierRepository           = supplierRepository;
     this.documentRepository           = documentRepository;
     this.epicRepository      = epicRepository;
     this.frameworkRepository = frameworkRepository;
 }
Exemplo n.º 8
0
 public Scope(IMarketingContactRepository marketingContactRepository,
              ISolutionCapabilityRepository solutionCapabilityRepository,
              ISolutionEpicRepository solutionEpicRepository,
              ISolutionDetailRepository solutionDetailRepository,
              ISolutionRepository solutionRepository,
              ISupplierRepository supplierRepository,
              IEpicRepository epicRepository,
              ISolutionEpicStatusRepository solutionEpicStatusRepository,
              IPriceRepository priceRepository,
              IDbConnector dbConnector)
 {
     MarketingContactRepository   = marketingContactRepository;
     SolutionCapabilityRepository = solutionCapabilityRepository;
     SolutionEpicRepository       = solutionEpicRepository;
     SolutionDetailRepository     = solutionDetailRepository;
     SolutionRepository           = solutionRepository;
     SupplierRepository           = supplierRepository;
     EpicRepository = epicRepository;
     SolutionEpicStatusRepository = solutionEpicStatusRepository;
     PriceRepository = priceRepository;
     DbConnector     = dbConnector;
 }
 public SolutionContactDetailsUpdater(IMarketingContactRepository repository)
 {
     _repository = repository;
 }
Exemplo n.º 10
0
 public ContactDetailsReader(IMarketingContactRepository marketingContactRepository)
 {
     this.marketingContactRepository = marketingContactRepository;
 }