コード例 #1
0
        public void Map_specialization_persistance_to_specialization_entity_when_persistance_is_null()
        {
            SpecializationPersistence specializationPersistance = null;

            Assert.Throws <ArgumentNullException>(()
                                                  => SpecializationMapper.MapSpecializationPersistenceToSpecializationEntity(specializationPersistance));
        }
コード例 #2
0
        public void Map_specialization_persistence_to_specialization_entity()
        {
            SpecializationPersistence specializationPersistance = this.GetSpecializationPersistanceFirst();

            Specialization specialization = SpecializationMapper.MapSpecializationPersistenceToSpecializationEntity(specializationPersistance);

            Assert.True(this.IsEqualSpecializationPersistanceAndSpecilizationEntity(specializationPersistance, specialization));
        }