Exemplo n.º 1
0
        public void TestEmployerSearch()
        {
            // Create community and members.

            var data      = TestCommunity.Autopeople.GetCommunityTestData();
            var community = data.CreateTestCommunity(_communitiesCommand, _verticalsCommand, _contentEngine);

            var index            = 0;
            var communityMembers = CreateMembers(ref index, community, 2);
            var membersNone      = CreateMembers(ref index, null, 3);
            var membersAll       = MiscUtils.ConcatArrays(new[] { communityMembers, membersNone });

            // Create employer.

            var employer = CreateEmployer();

            // Associate them with the Autopeople service partner.

            var partner = new Partner {
                Name = data.Name
            };

            _partnersCommand.CreatePartner(partner);
            _partnersCommand.SetPartner(employer.Id, partner.Id);

            // Log in via the special login page.

            AutopeopleLogIn(employer);

            // In the vertical site should get all members.

            Search(membersAll);
        }