public void Map_admin_entities_collection_to_identifier_adminDTO_collection_when_entities_collection_is_null() { List <Admin> listOfAdmins = null; Assert.Throws <ArgumentNullException>(() => AdminMapper.MapAdminEntityCollectionToIdentifierAdminDTOCollection(listOfAdmins)); }
public void Map_admin_entites_collection_to_identifier_adminDTO_collection() { List <Admin> listOfAdmins = this.GetListOfAdmins(); List <IdentifiableDTO <AdminDTO> > listOfIdentifierAdminDTO = AdminMapper.MapAdminEntityCollectionToIdentifierAdminDTOCollection(listOfAdmins).ToList(); Assert.True(this.IsEqualAdminEntitiesAndIdentifierAdminDTO(listOfAdmins[0], listOfIdentifierAdminDTO[0])); Assert.True(this.IsEqualAdminEntitiesAndIdentifierAdminDTO(listOfAdmins[1], listOfIdentifierAdminDTO[1])); }