protected ReviewsValidatorBase( IReviewsDatastore <ReviewsBase> reviewsDatastore, IEvidenceDatastore <EvidenceBase> evidenceDatastore, IClaimsDatastore <ClaimsBase> claimDatastore, ISolutionsDatastore solutionDatastore, IHttpContextAccessor context, ILogger <ReviewsValidatorBase <T> > logger) : base(context, logger) { _reviewsDatastore = reviewsDatastore; _evidenceDatastore = evidenceDatastore; _claimDatastore = claimDatastore; _solutionDatastore = solutionDatastore; RuleSet(nameof(IReviewsLogic <T> .Create), () => { MustBeValidEvidenceId(); MustBeSupplier(); SolutionMustBeInReview(); MustBeFromSameOrganisation(); MustBeValidPreviousId(); PreviousMustBeForSameEvidence(); PreviousMustNotBeInUse(); }); }
public DummyReviewsLogicBase( IReviewsBaseModifier <ReviewsBase> modifier, IReviewsDatastore <ReviewsBase> datastore, IContactsDatastore contacts, IReviewsValidator <ReviewsBase> validator, IReviewsFilter <IEnumerable <ReviewsBase> > filter, IHttpContextAccessor context) : base(modifier, datastore, contacts, validator, filter, context) { }
public DummyReviewsValidatorBase( IReviewsDatastore <ReviewsBase> reviewsDatastore, IEvidenceDatastore <EvidenceBase> evidenceDatastore, IClaimsDatastore <ClaimsBase> claimDatastore, ISolutionsDatastore solutionDatastore, IHttpContextAccessor context, ILogger <DummyReviewsValidatorBase> logger) : base(reviewsDatastore, evidenceDatastore, claimDatastore, solutionDatastore, context, logger) { }
public ReviewsLogicBase( IReviewsBaseModifier <T> modifier, IReviewsDatastore <T> datastore, IContactsDatastore contacts, IReviewsValidator <T> validator, IReviewsFilter <IEnumerable <T> > filter, IHttpContextAccessor context) : base(context) { _modifier = modifier; _datastore = datastore; _contacts = contacts; _validator = validator; _filter = filter; }