Ejemplo n.º 1
0
        public void Map_specialization_entity_to_specialization_identifier_dto_when_entity_is_null()
        {
            Specialization specialization = null;

            Assert.Throws <ArgumentNullException>(()
                                                  => SpecializationMapper.MapSpecializationEntityToSpecializationIdentifierDTO(specialization));
        }
Ejemplo n.º 2
0
        public void Map_specialization_entity_to_specialization_identifier_dto()
        {
            Guid           id             = Guid.Parse("11ac21e1-1361-4c06-9751-9666ce10d30a");
            Specialization specialization = new Specialization(id, "Hirurg");

            IdentifiableDTO <SpecializationDTO> identifierSpecificationDTO = SpecializationMapper.MapSpecializationEntityToSpecializationIdentifierDTO(specialization);

            Assert.Equal(specialization.Id, identifierSpecificationDTO.Id);
            Assert.Equal(specialization.Name, identifierSpecificationDTO.EntityDTO.Name);
        }