public void SqlQueryBuilderWithObjectHierarchy_Use_SupportedODataQueryOptions_GetDefaultDataServiceV2()
        {
            SqlQueryBuilderWithObjectHierarchy myClass = new SqlQueryBuilderWithObjectHierarchy('.');
            var getSupportedODataQueryOptions          = myClass.GetType().GetMethod("GetSupportedODataQueryOptions", BindingFlags.Static | BindingFlags.Public);

            var compareResult = new CompareLogic().Compare(getSupportedODataQueryOptions.Invoke(null, null),
                                                           SupportedODataQueryOptions.GetDefaultDataServiceV2());

            Assert.IsTrue(compareResult.AreEqual);
        }
Ejemplo n.º 2
0
        internal ODataServiceSettings()
        {
            ValidationSettings = SupportedODataQueryOptions.GetDefaultDataServiceV2();

            Services = new ODataServiceSettingsServices();
        }