Пример #1
0
        public void FindDuplicates_Name()
        {
            var result = queries.FindDuplicates(new[] { artist.DefaultName }, string.Empty);

            Assert.IsNotNull(result, "result");
            Assert.AreEqual(1, result.Length, "Number of results");
            Assert.AreEqual(artist.Id, result[0].Id, "Matched artist");
        }
Пример #2
0
        public void FindDuplicates_Name()
        {
            var result = _queries.FindDuplicates(new[] { _artist.DefaultName }, string.Empty);

            result.Should().NotBeNull("result");
            result.Length.Should().Be(1, "Number of results");
            result[0].Id.Should().Be(_artist.Id, "Matched artist");
        }
Пример #3
0
        public ActionResult FindDuplicate(string term1, string term2, string term3, string linkUrl)
        {
            var result = queries.FindDuplicates(new[] { term1, term2, term3 }, linkUrl).Select(e => new DuplicateEntryResultContract <ArtistEditableFields>(e, ArtistEditableFields.Names));

            return(LowercaseJson(result));
        }