Exemplo n.º 1
0
        public IEnumerable <ContactEntity> Get(int Count)
        {
            var Generator = new GenerateContacts(Count);

            var FirstNames = GetFirstNamesAsync();
            var LastNames  = GetLastNamesAsync();

            return(Generator.Generate(FirstNames, LastNames));
        }
Exemplo n.º 2
0
        // GET api/<controller>
        public Node <int> Get()
        {
            var Contacts     = GenerateContacts.PopulateContacts(1000);
            var Connections  = GenerateConnections.PopulateConnections(Contacts);
            var Adapter      = new NodeAdapter();
            var ContactsNode = Adapter.FromContacts(Contacts, Connections);

            return(ContactsNode);
        }
Exemplo n.º 3
0
    //add each person to a button in a list
    public void PopulateList()
    {
        GenerateContacts gC = GetComponent <GenerateContacts>();

        gC.AddContacts();
        foreach (KeyValuePair <string, ContactInfo> entry in gC.contacts)
        {
            GetContact(entry.Key, gC.contacts);//add each contact to list
        }
    }
Exemplo n.º 4
0
 // GET api/contacts
 public IEnumerable <ContactEntity> Get()
 {
     return(GenerateContacts.PopulateContacts(10000));
 }
Exemplo n.º 5
0
 private List <ContactEntity> GetContacts(int NotOfContacts)
 {
     return(GenerateContacts.PopulateContacts(NotOfContacts));
 }
 // GET api/connection
 public IEnumerable <ContactConnection> Get()
 {
     return(GenerateConnections.PopulateConnections(GenerateContacts.PopulateContacts(1000)));
 }