public void should_assign_defence_advocate()
        {
            var ep = new Endpoint("DisplayName", "*****@*****.**", "1111", null);
            var dA = new ParticipantBuilder().RepresentativeParticipantRespondent;

            ep.AssignDefenceAdvocate(dA);

            ep.DefenceAdvocate.Should().Be(dA);
        }
Beispiel #2
0
        public void should_assign_defence_advocate()
        {
            var defenceAdvocate = "Defence Sol";
            var endpoint        = new Endpoint("old name", "*****@*****.**", "1234", defenceAdvocate);

            var newDefenceAdvocate = "*****@*****.**";

            endpoint.AssignDefenceAdvocate(newDefenceAdvocate);

            endpoint.DefenceAdvocate.Should().Be(newDefenceAdvocate);
        }