示例#1
0
        public void CreateContactInformation()
        {
            Guid testGuid = Guid.NewGuid();
            IContactInformation contactInformation = _contactInformationFactory.CreateContactInformation(testGuid, "Fredrik", "Jonasson", "*****@*****.**");

            Assert.Equal("Fredrik", contactInformation.FirstName);
            Assert.Equal("Jonasson", contactInformation.LastName);
            Assert.Equal("*****@*****.**", contactInformation.Email);
            Assert.Equal(testGuid, contactInformation.Id);
        }
示例#2
0
 public Company(IContactInformation contactInformation, ILocation location)
 {
     this.contactInformation = contactInformation;
     this.location           = location;
 }
示例#3
0
        public IParticipant CreateParticipant(Guid id, IContactInformation contactInformation)
        {
            IParticipant participant = new Participant(id, contactInformation);

            return(participant);
        }
示例#4
0
 public Participant(Guid id, IContactInformation contactInformation)
 {
     Id = id;
     ContactInformation = contactInformation;
 }