public void GetFunctionParamterMappings_ThrowsArgumentNull_Parameters()
        {
            // Arrange & Act & Assert
            IEdmFunction function = null;

            ExceptionAssert.ThrowsArgumentNull(() => function.GetFunctionParamterMappings(), "function");

            // Arrange & Act & Assert
            IEdmFunctionImport functionImport = null;

            ExceptionAssert.ThrowsArgumentNull(() => functionImport.GetFunctionParamterMappings(), "functionImport");
        }
Exemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="FunctionSegmentTemplate" /> class.
 /// </summary>
 /// <param name="function">The Edm function, it should be bound function.</param>
 /// <param name="navigationSource">The Edm navigation source of this function return. It could be null.</param>
 public FunctionSegmentTemplate(IEdmFunction function, IEdmNavigationSource navigationSource)
     : this(function.GetFunctionParamterMappings(), function, navigationSource)
 {
 }