Пример #1
0
        public void Participant_AsParticipantDto_MapsCorrectly()
        {
            //Arrange
            var participant = new Participant()
            {
                Id       = 1,
                Email    = "test-email",
                Forename = "test-forename",
                Surname  = "test-surname"
            };

            //Act
            var dto = participant.AsParticipantDto();

            //Assert
            Assert.AreEqual(participant.Email, dto.Email);
            Assert.AreEqual(participant.Forename, dto.Forename);
            Assert.AreEqual(participant.Surname, dto.Surname);
            Assert.AreEqual(participant.Id, dto.Id);
        }