Ejemplo n.º 1
0
        public void MangaFranchisesShouldBeSeparate(string firstEntryName, string secondEntryName)
        {
            // given
            long firstId  = malDictionary[firstEntryName];
            long secondId = malDictionary[secondEntryName];
            // when
            var firstFranchise  = franchiseService.CreateFromManga(firstId);
            var secondFranchise = franchiseService.CreateFromManga(secondId);

            // then
            Assert.DoesNotContain(firstFranchise.MangaPositions, a => a.MalId == secondId);
            Assert.DoesNotContain(secondFranchise.MangaPositions, a => a.MalId == firstId);
        }
Ejemplo n.º 2
0
        public SeriesEntry CreateFranchise(IListEntry entry, IFranchiseService franchiseService, AdaptationIncluding withAdaptations)
        {
            var franchise = franchiseService.CreateFromManga(entry.Id, withAdaptations);

            return(franchise);
        }