/// <summary> /// Factory /// </summary> /// <param name="includeProperties"></param> /// <returns></returns> public static DynamicHashDictionary Init(params string[] includeProperties) { var result = new DynamicHashDictionary(); result.InitIncludeProperties(includeProperties); return(result); }
public void IncludeProperties_Twice_Should_Ex() { AssertHelper.ShouldThrows <InvalidOperationException>(() => { _dynamicHashModel = DynamicHashDictionary.Init("Foo", "BAR"); _dynamicHashModel.InitIncludeProperties("*"); }); }