public void GetFeaturesValidator_is_valid_if_gencontext_is_initialized(GetFeaturesValidator validator, GetFeaturesCommand command) { InitFakeGenContext(); validator .ShouldNotHaveValidationErrorFor(x => GenContext.ToolBox, command); }
public void GetFeaturesValidator_failed_if_gencontext_is_not_initialized(GetFeaturesValidator validator, GetFeaturesCommand command) { ClearFakeGenContext(); validator .ShouldHaveValidationErrorFor(x => GenContext.ToolBox, command) .WithErrorMessage(StringRes.BadReqNotSynced); }