public OrganisationPhoneCommunicationCreateTest(TestFixture fixture)
            : base(fixture)
        {
            var organisation = new Organisations(this.Session).Extent().First;

            var allors        = new Organisations(this.Session).FindBy(M.Organisation.Name, "Allors BVBA");
            var firstEmployee = allors.ActiveEmployees.First();

            this.editCommunicationEvent = new PhoneCommunicationBuilder(this.Session)
                                          .WithSubject("dummy")
                                          .WithLeftVoiceMail(true)
                                          .WithFromParty(firstEmployee)
                                          .WithToParty(organisation.CurrentContacts.First)
                                          .WithPhoneNumber(organisation.GeneralPhoneNumber)
                                          .Build();

            this.organisationPhoneNumber = new PartyContactMechanismBuilder(this.Session)
                                           .WithContactMechanism(new TelecommunicationsNumberBuilder(this.Session).WithCountryCode("+1").WithAreaCode("111").WithContactNumber("222").Build())
                                           .WithContactPurpose(new ContactMechanismPurposes(this.Session).SalesOffice)
                                           .WithUseAsDefault(false)
                                           .Build();

            organisation.AddPartyContactMechanism(this.organisationPhoneNumber);

            this.Session.Derive();
            this.Session.Commit();

            this.Login();
            this.organisations = this.Sidenav.NavigateToOrganisations();
        }
Exemple #2
0
        public OrganisationOrganisationContactRelationshipEditTest(TestFixture fixture)
            : base(fixture)
        {
            this.organisation = new OrganisationBuilder(this.Session).WithName("organisation").Build();
            this.contact      = new PersonBuilder(this.Session).WithLastName("contact").Build();

            this.editPartyRelationship = new OrganisationContactRelationshipBuilder(this.Session)
                                         .WithContactKind(new OrganisationContactKinds(this.Session).GeneralContact)
                                         .WithContact(this.contact)
                                         .WithOrganisation(this.organisation)
                                         .Build();

            this.Session.Derive();
            this.Session.Commit();

            this.Login();
            this.organisations = this.Sidenav.NavigateToOrganisations();
        }
Exemple #3
0
        public SupplierRelationshipEditTest(TestFixture fixture)
            : base(fixture)
        {
            var allors   = new Organisations(this.Session).FindBy(M.Organisation.Name, "Allors BVBA");
            var supplier = new OrganisationBuilder(this.Session).WithName("supplier").Build();

            // Delete all existing for the new one to be in the first page of the list.
            foreach (PartyRelationship partyRelationship in allors.PartyRelationshipsWhereParty)
            {
                partyRelationship.Delete();
            }

            this.editPartyRelationship = new SupplierRelationshipBuilder(this.Session)
                                         .WithSupplier(supplier)
                                         .WithInternalOrganisation(allors)
                                         .Build();

            this.Session.Derive();
            this.Session.Commit();

            this.Login();
            this.organisations = this.Sidenav.NavigateToOrganisations();
        }
 public OrganisationEmailCommunicationCreateTest(TestFixture fixture)
     : base(fixture)
 {
     this.Login();
     this.organisationListPage = this.Sidenav.NavigateToOrganisations();
 }
Exemple #5
0
 public OrganisationLetterCorrespondenceCreateTest(TestFixture fixture)
     : base(fixture)
 {
     this.Login();
     this.organisationListPage = this.Sidenav.NavigateToOrganisations();
 }
Exemple #6
0
 public InternalOrganisationEmploymentEditTest(TestFixture fixture)
     : base(fixture)
 {
     this.Login();
     this.organisationListPage = this.Sidenav.NavigateToOrganisations();
 }
 public OrganisationFaceToFaceCommunicationEditTest(TestFixture fixture)
     : base(fixture)
 {
     this.Login();
     this.organisationListPage = this.Sidenav.NavigateToOrganisations();
 }