Esempio n. 1
0
        public void Map_admin_entity_to_identifier_admin_dto_when_when_entity_is_null()
        {
            Admin admin = null;

            Assert.Throws <ArgumentNullException>(()
                                                  => AdminMapper.MapAdminEntityToIdentifierAdminDTO(admin));
        }
Esempio n. 2
0
        public void Map_admin_entity_to_identifier_admin_dto()
        {
            Admin admin = this.GetAdminFirts();

            IdentifiableDTO <AdminDTO> identifierAdminDTO = AdminMapper.MapAdminEntityToIdentifierAdminDTO(admin);

            Assert.True(IsEqualAdminEntitiesAndIdentifierAdminDTO(admin, identifierAdminDTO));
        }