public async Task CanUpdate_should_not_throw_exception_if_rule_has_already_this_name() { var command = new UpdateRule { Name = "MyName" }; await GuardRule.CanUpdate(command, Rule(), appProvider); }
public async Task CanUpdate_should_not_throw_exception_if_trigger_action__and_name_are_valid() { var command = new UpdateRule { Trigger = new ContentChangedTriggerV2 { Schemas = ReadOnlyCollection.Empty <ContentChangedTriggerSchemaV2>() }, Action = new TestAction { Url = validUrl }, Name = "NewName" }; await GuardRule.CanUpdate(command, Rule(), appProvider); }
public async Task CanUpdate_should_not_throw_exception_if_all_properties_are_null() { var command = new UpdateRule(); await GuardRule.CanUpdate(command, Rule(), appProvider); }