public MembersViewModel() { ListMembers = RestClientService.GetListMembers(); _proto = new ProtobufContext(new piwcldbEntities()); _proto.Executor <member>(); ListMembers = _proto.Context <member>(); }
public void ModelFindTypeTest() { p = new ProtobufContext(); p.Add(m1); p.ExecutorInterface <member>(p.ModelsList.ElementAt(0)); Console.WriteLine(p.Context <member>()); }
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 <member>(); Console.WriteLine(members.ElementAt(0).FirstName); }
public void ConstructorInitException_Test() { p = new ProtobufContext(new piwcldbEntities()); p.Executor <member>(); p.Executor <ch_services>(); p.Executor <m_occupation>(); p.Executor <address>(); p.Executor <non_member>(); var p_ = p.Context <member>(); }