Esempio n. 1
0
        public void Should_map_and_return_newparticipant_with_address_and_organistaion()
        {
            var request = new ParticipantRequest
            {
                Title           = "Mr",
                FirstName       = "Test",
                LastName        = "Tester",
                Username        = "******",
                CaseRoleName    = "Claimant",
                HearingRoleName = "Representative",
                HouseNumber     = "123A",
                Street          = "Test Street",
                Postcode        = "SW1V 1AB",
                City            = "Westminister",
                County          = "London"
            };

            var newParticipant = new ParticipantRequestToNewParticipantMapper().MapRequestToNewParticipant(request, _caseType);

            newParticipant.Should().NotBeNull();
            var person = newParticipant.Person;

            person.Should().NotBeNull();
            person.Address.Should().NotBeNull();
            person.Organisation.Should().BeNull();
        }
Esempio n. 2
0
        public void Should_map_and_return_newparticipant_with_organistaion()
        {
            var request = new ParticipantRequest
            {
                Title            = "Mr",
                FirstName        = "Test",
                LastName         = "Tester",
                Username         = "******",
                CaseRoleName     = "Respondent",
                HearingRoleName  = "Representative",
                OrganisationName = "Test Corp Ltd"
            };

            var newParticipant = new ParticipantRequestToNewParticipantMapper().MapRequestToNewParticipant(request, _caseType);

            newParticipant.Should().NotBeNull();
            var person = newParticipant.Person;

            person.Should().NotBeNull();
            person.Address.Should().BeNull();
            person.Organisation.Should().NotBeNull();
        }