public void GetVideosCharacterIsNotIn_WhenCharacterIsInVideo() { var videoDto = GetNewVideoDetails(); var video1Id = repository.CreateVideo(videoDto); var video = repository.GetVideo(video1Id).Result; var video2Id = repository.CreateVideo(videoDto); var video2 = repository.GetVideo(video2Id).Result; var characterDto = CreateCharacterUtil.GetNewCharacterDetails(testLibrary.LibraryId); var character = CreateAndRetrieveCharacter(characterDto); characterRepository.AddCharacterToVideos(character, new List <Video> { video }); var expectedList = new List <Video> { video2 }; var actualList = repository.GetVideosCharacterIsNotIn(GetFirstPage(), testLibrary.LibraryId, character.CharacterId, "").Result.Results; CollectionAssert.AreEquivalent(expectedList, actualList); }
public async Task AddCharacterToVideos(Character character, List <Video> videos) { characterRepository.AddCharacterToVideos(character, videos); }