public async Task TVShowIsInUserWatchlistShouldReturnCorrectResult() { var user1 = new MovieDatabaseUser { UserName = "******", Email = "*****@*****.**", AvatarLink = "avatar", }; var artist1 = new Artist { FullName = "name1", Biography = "biography1", BirthDate = DateTime.Parse("25 July 2019"), PhotoLink = "photo1", }; var tvShow1 = new TVShow { Name = "tvShow1", Description = "description2", Genre = new Genre { Name = "genre2" }, Creator = artist1, CoverImageLink = "cover2", TrailerLink = "trailer2", }; var tvShowUser = new TVShowUser { User = user1, TVShow = tvShow1, }; await dbContext.Users.AddAsync(user1); await dbContext.TVShows.AddAsync(tvShow1); await dbContext.TVShowUsers.AddAsync(tvShowUser); await dbContext.SaveChangesAsync(); var userId = user1.Id; var tvShowId = tvShow1.Id; var watchlistService = new WatchlistService(dbContext, mapper); var tvShowResult = await watchlistService.TVShowIsInUserWatchlistAsync(userId, tvShowId); var invalid1 = await watchlistService.TVShowIsInUserWatchlistAsync("invalidUserId", tvShowId); var invalid2 = await watchlistService.TVShowIsInUserWatchlistAsync(userId, "invalidTvShowId"); Assert.True(tvShowResult); Assert.False(invalid1); Assert.False(invalid2); }