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");
        }
Esempio n. 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="FunctionImportSegmentTemplate" /> class.
 /// </summary>
 /// <param name="functionImport">The Edm function import.</param>
 /// <param name="navigationSource">The target navigation source, it could be null.</param>
 public FunctionImportSegmentTemplate(IEdmFunctionImport functionImport, IEdmNavigationSource navigationSource)
     : this(functionImport.GetFunctionParamterMappings(), functionImport, navigationSource)
 {
 }