コード例 #1
0
        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(),
                });
            });
        }
コード例 #2
0
 public void GivenAConformanceBuilder_WhenApplyToUnknownResource_ThenAnArgumentExceptionIsThrown()
 {
     Assert.Throws <ArgumentException>(() => _builder.ApplyToResource("foo", c => c.ConditionalCreate = true));
 }