public void FixAllContactsLoginNames()
        {
            var clientContacts = this.ContactsApi.GetAll(0, int.MaxValue);

            foreach (ISalesforceContact contact in clientContacts)
            {
                if (string.IsNullOrEmpty(contact.Login))
                {
                    ISalesforceContact updateContact = new SalesforceContact(this.FieldMapping)
                    {
                        Id    = contact.Id,
                        Login = string.IsNullOrEmpty(contact.Email) ? contact.GetProperty <string>("Name") : contact.Email
                    };

                    updateContact.SetProperty("SC_Password__c", "123".GetSHA1Hash());

                    var result = this.ContactsApi.Update(updateContact);
                    Assert.IsTrue(result);
                }
            }
        }
        public void FixAllContactsLoginNames()
        {
            var clientContacts = this.ContactsApi.GetAll(0, int.MaxValue);

              foreach (ISalesforceContact contact in clientContacts)
              {
            if (string.IsNullOrEmpty(contact.Login))
            {
              ISalesforceContact updateContact = new SalesforceContact(this.FieldMapping)
              {
            Id = contact.Id,
            Login = string.IsNullOrEmpty(contact.Email) ? contact.GetProperty<string>("Name") : contact.Email
              };

              updateContact.SetProperty("SC_Password__c", "123".GetSHA1Hash());

              var result = this.ContactsApi.Update(updateContact);
              Assert.IsTrue(result);
            }
              }
        }