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;
 }
        public async Task Setup()
        {
            await Database.ClearAsync();

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

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

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

            TestContext testContext = new TestContext();

            _solutionEpicRepository       = testContext.SolutionEpicRepository;
            _epicRepository               = testContext.EpicRepository;
            _solutionEpicStatusRepository = testContext.SolutionEpicStatusRepository;
        }
Example #3
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;
 }
Example #4
0
 public ClaimedEpicsVerifier(IEpicRepository epicRepository, ISolutionEpicStatusRepository solutionEpicStatusRepository)
 {
     _epicRepository = epicRepository;
     _solutionEpicStatusRepository = solutionEpicStatusRepository;
     _verifyEpicsResult            = new VerifyEpicsResult();
 }