public bool TryMatch(IDictionary <Guid, IList <MediaItemAspect> > extractedAspects, IDictionary <Guid, IList <MediaItemAspect> > existingAspects) { if (!existingAspects.ContainsKey(CompanyAspect.ASPECT_ID)) { return(false); } CompanyInfo linkedCompany = new CompanyInfo(); if (!linkedCompany.FromMetadata(extractedAspects)) { return(false); } CompanyInfo existingCompany = new CompanyInfo(); if (!existingCompany.FromMetadata(existingAspects)) { return(false); } return(linkedCompany.Equals(existingCompany)); }