public ContactDTO CreateContact(SiteDTO atSite) { var first = GetRandomString15CharactersLong(); var last = GetRandomString15CharactersLong(); return(CreateContact(first, last, atSite)); }
public override void beforeAll() { _site = new ObjectMother(AdministratorClarifySession).CreateSite(); _contact = new ObjectMother(AdministratorClarifySession).CreateContact(_site); var assembler = Container.GetInstance <IModelBuilder <TableToViewWithManyDTOs> >(); _viewModel = assembler.GetOne(_contact.ObjId); }
public ContactDTO CreateContact(string firstName, string lastName, SiteDTO atSite) { var interfacesToolkit = _clarifySession.CreateInterfacesToolkit(); var phone = GetRandomString15CharactersLong(); var createContactSetup = new CreateContactSetup(firstName, lastName, phone, atSite.SiteIdentifier) { Email = firstName + "@example.org" }; var createContactResult = interfacesToolkit.CreateContact(createContactSetup); return(new ContactDTO { FirstName = firstName, LastName = lastName, Phone = phone, ObjId = createContactResult.Objid, Site = atSite, Email = createContactSetup.Email }); }
public ContactDTO CreateContact(string firstName, string lastName, SiteDTO atSite) { var interfacesToolkit = _clarifySession.CreateInterfacesToolkit(); var phone = GetRandomString15CharactersLong(); var createContactSetup = new CreateContactSetup(firstName, lastName, phone, atSite.SiteIdentifier) { Email = firstName + "@example.org" }; var createContactResult = interfacesToolkit.CreateContact(createContactSetup); return new ContactDTO { FirstName = firstName, LastName = lastName, Phone = phone, ObjId = createContactResult.Objid, Site = atSite, Email = createContactSetup.Email }; }
public ContactDTO CreateContact(SiteDTO atSite) { var first = GetRandomString15CharactersLong(); var last = GetRandomString15CharactersLong(); return CreateContact(first, last, atSite); }
public void AddSiteToContact(SiteDTO siteDto, ContactDTO contactDto) { var interfacesToolkit = _clarifySession.CreateInterfacesToolkit(); interfacesToolkit.UpdateContact(contactDto.FirstName, contactDto.LastName, contactDto.Phone, siteDto.SiteIdentifier, ""); }
public void AddSiteToContact(SiteDTO siteDto, ContactDTO contactDto) { var interfacesToolkit = _clarifySession.CreateInterfacesToolkit(); interfacesToolkit.UpdateContact(contactDto.FirstName, contactDto.LastName, contactDto.Phone, siteDto.SiteIdentifier, ""); }