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); }
public Company(IContactInformation contactInformation, ILocation location) { this.contactInformation = contactInformation; this.location = location; }
public IParticipant CreateParticipant(Guid id, IContactInformation contactInformation) { IParticipant participant = new Participant(id, contactInformation); return(participant); }
public Participant(Guid id, IContactInformation contactInformation) { Id = id; ContactInformation = contactInformation; }