private void AddResourceSpecificExportDetails(ICapabilityStatementBuilder builder, string operationType, string resourceType) { Uri operationDefinitionUri = _urlResolver.ResolveOperationDefinitionUrl(operationType); builder.ApplyToResource(resourceType, resourceComponent => { resourceComponent.Operation.Add(new OperationComponent() { Name = operationType, Definition = operationDefinitionUri.ToString(), }); }); }
public void GivenAConformanceBuilder_WhenApplyToUnknownResource_ThenAnArgumentExceptionIsThrown() { Assert.Throws <ArgumentException>(() => _builder.ApplyToResource("foo", c => c.ConditionalCreate = true)); }