public IResponse GetValidationCondition(int validationConditionID) { GuardianOptions options = GuardianOptionsFactory.GetOptions(); GuardianDataProvider dataProvider = options.GuardianDataProviderFactory(); return(new JsonResponse(dataProvider.GetValidationCondition(validationConditionID))); }
public IResponse DeleteValidationCondition(int validationConditionID) { GuardianOptions options = GuardianOptionsFactory.GetOptions(); GuardianDataProvider dataProvider = options.GuardianDataProviderFactory(); dataProvider.DeleteValidationCondition(validationConditionID); return(new JsonResponse(string.Empty)); }
public IResponse UpdateValidationCondition(ValidationCondition validationCondition) { GuardianOptions options = GuardianOptionsFactory.GetOptions(); GuardianDataProvider dataProvider = options.GuardianDataProviderFactory(); IValidationCondition createdValidation = dataProvider.UpdateValidationCondition(validationCondition); return(new JsonResponse(dataProvider.GetValidationCondition(createdValidation.ValidationConditionID))); }
public void TestInitialize() { _dataProvider = GuardianDataProviderConfiguration.GetDataProvider(); _dataProvider.BeginTransaction(); }