public void ModelInjectionTest()
 {
     p = new ProtobufContext();
     p.Add(m1);
     p.ExecutorInterface((List <member>)p.ModelsList.ElementAt(0));
     var c = p.Context;
 }
        public void ModelFindTypeTest()
        {
            p = new ProtobufContext();
            p.Add(m1);
            p.ExecutorInterface <member>(p.ModelsList.ElementAt(0));

            Console.WriteLine(p.Context <member>());
        }
예제 #3
0
 public void ModelInjectionTest()
 {
     p = new ProtobufContext();
     p.Add(m1);
     p.ExecutorInterface((List <member>)p.ModelsList.ElementAt(0));
     ProtoContext c = p.Context;
     var          s = c.members.ElementAt(0).FirstName;
 }
        public void ModelInjectionTest()
        {
            p = new ProtobufContext();
            p.Add(m1);
            p.ExecutorInterface((List <member>)p.ModelsList.ElementAt(0));

            var members = (List <member>)p.Context.members;

            Console.WriteLine(members.ElementAt(0).FirstName);
        }
        public void ModelFindTypeTest()
        {
            p = new ProtobufContext();
            p.Add(m1);
            p.ExecutorInterface((List <member>)p.ModelsList.ElementAt(0));

            var members = p.Context.members;

            Console.WriteLine(members == typeof(List <member>) ? (members as List <member>).ToString() : "false");
        }
        public void ModelFindTypeTest()
        {
            p = new ProtobufContext();
            p.Add(m1);
            p.ExecutorInterface((List <member>)p.ModelsList.ElementAt(0));

            var membersType = p.Context.members.GetType();

            Console.WriteLine(membersType);
        }
        public void DeserialisationTest()
        {
            p = new ProtobufContext();
            p.Add(m1);
            p.ExecutorInterface <member>(p.ModelsList.ElementAt(0));

            var members = p.DeserialiseAndLoadList <member>();

            Console.Write(members);
        }
        public void SerialisationTest()
        {
            p = new ProtobufContext();
            p.Add(m1);
            p.ExecutorInterface <member>(p.ModelsList.ElementAt(0));

            var members = p.Context <member>();

            p.SerialiseAndStoreList(members);
        }
        public void ModelInjectionTest()
        {
            p = new ProtobufContext();
            p.Add(m1);
            p.ExecutorInterface <member>(p.ModelsList.ElementAt(0));

            var members = p.Context.GetPropertyValue <member>("members");

            Console.WriteLine(members.ElementAt(0).FirstName);
        }
        public void ModelFindTypeTest()
        {
            p = new ProtobufContext();
            p.Add(m1);
            p.ExecutorInterface <member>(p.ModelsList.ElementAt(0));

            var m = p.Context.GetPropertyValue <member>("members");
            //var members= (p.Context.members.GetType() == typeof(List<member>)) ?p.Context.members as List<member> : p.Context.members;
            //Console.WriteLine(members.ToString());
        }
예제 #11
0
        public void ModelInjectionTest()
        {
            p = new ProtobufContext();
            p.Add(m1);
            p.ExecutorInterface((List <member>)p.ModelsList.ElementAt(0));
            dynamic c = p.Context;
            var     s = c.members;

            Console.WriteLine(@"Hello");
        }
예제 #12
0
 public void ModelInjectionTest()
 {
     p = new ProtobufContext();
     p.Add(m1);
 }