Пример #1
0
        public OrganisationOverviewTest(TestFixture fixture)
            : base(fixture)
        {
            var dashboard = this.Login();

            this.organisationListPage = dashboard.Sidenav.NavigateToOrganisationList();
        }
Пример #2
0
        public OrganisationLetterCorrespondenceEditTest(TestFixture fixture)
            : base(fixture)
        {
            var dashboard = this.Login();

            this.organisationListPage = dashboard.Sidenav.NavigateToOrganisationList();
        }
        public InternalOrganisationEmploymentEditTest(TestFixture fixture)
            : base(fixture)
        {
            var dashboard = this.Login();

            this.organisationListPage = dashboard.Sidenav.NavigateToOrganisationList();
        }
Пример #4
0
        public OrganisationEmailCommunicationEditTest(TestFixture fixture)
            : base(fixture)
        {
            var dashboard = this.Login();

            this.organisationListPage = dashboard.Sidenav.NavigateToOrganisationList();
        }
Пример #5
0
        public OrganisationPhoneCommunicationEditTest(TestFixture fixture)
            : base(fixture)
        {
            var people       = new Organisations(this.Session).Extent();
            var organisation = people.First(v => v.PartyName.Equals("Acme0"));

            var allors        = new Organisations(this.Session).FindBy(M.Organisation.Name, "Allors BVBA");
            var firstEmployee = allors.ActiveEmployees.First(v => v.FirstName.Equals("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();

            var dashboard = this.Login();

            this.organisations = dashboard.Sidenav.NavigateToOrganisationList();
        }
Пример #6
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();

            var dashboard = this.Login();

            this.organisations = dashboard.Sidenav.NavigateToOrganisationList();
        }
        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();

            var dashboard = this.Login();

            this.organisations = dashboard.Sidenav.NavigateToOrganisationList();
        }