public BillingRanValidator(IRelativityBillingRepo relBillingRepo, IRelativityProvidersRepo relProvidersRepo, BillingValidatorSettings billingSettings) : base(BillingValidatorProxy.BillingValidatorId) { this._relBillingRepo = Guard.NotNull(relBillingRepo, "relBillingRepo", log); this._relProvidersRepo = Guard.NotNull(relProvidersRepo, "relProvidersRepo", log); this._billingSettings = Guard.NotNull(billingSettings, "billingSettings", log); }
public void ValidatorRelativityProcessFailsWhenNoCaseStatsBindingFound(BillingValidatorSettings billingSettings, [Frozen] IRelativityBillingRepo relBillingRepo, [Frozen] IRelativityProvidersRepo relProvidersRepo, IValidatorContext validatorContext) { var kernel = this.GetBillingValidatorWithAllKernelBindings(); var billingValidator = new BillingRanValidator(relBillingRepo, relProvidersRepo, billingSettings); IList <IValidatorResult> results = billingValidator.Execute(validatorContext); Assert.Equal(results.Where(r => r.ResultCode == ValidatorResultCode.Error).Count(), 4); }