public void Run(IUnityContainer Container) { LynqTest.Test(); AGeneric.ExecuteWithType(); AGeneric.ExecuteWithNoType(); PlayingWithEnumerable.Test(); }
public static void ExecuteWithType() { string s = AGeneric.ExecuteJsonCallAction <object>(() => { return(new string("Hello")); }, x => new BaseResponse { Data = new { UpdateProducts = true, UpdateCart = true }, StateInformation = x.ToString() }); Console.WriteLine(s); }
public static void ExecuteWithNoType() { string sNoGeneric = AGeneric.ExecuteJsonCallAction(() => { return(new string("NoGeneric")); }, x => new BaseResponse { Data = x, StateInformation = "MaisVideInfo" }); Console.WriteLine(sNoGeneric); }