public void SetUp() { _loader = TestInitializer.ServiceProvider.GetService <IMotherBabyPairLoader>(); _extractor = TestInitializer.ServiceProvider.GetService <IMotherBabyPairSourceExtractor>(); _extract = _extracts.First(x => x.Name.IsSameAs(nameof(MotherBabyPairExtract))); _count = _extractor.Extract(_extract, _protocol).Result; }
public ExtractMotherBabyPairHandler(IMotherBabyPairSourceExtractor motherBabyPairSourceExtractor, IMnchExtractValidator extractValidator, IMotherBabyPairLoader motherBabyPairLoader, IExtractHistoryRepository extractHistoryRepository) { _motherBabyPairSourceExtractor = motherBabyPairSourceExtractor; _extractValidator = extractValidator; _motherBabyPairLoader = motherBabyPairLoader; _extractHistoryRepository = extractHistoryRepository; }