mirror of
				https://github.com/zoriya/Kyoo.git
				synced 2025-11-04 03:27:14 -05:00 
			
		
		
		
	Fixing tests
This commit is contained in:
		
							parent
							
								
									538ba9a673
								
							
						
					
					
						commit
						3ad5a0d127
					
				@ -20,6 +20,8 @@ namespace Kyoo.Tests
 | 
				
			|||||||
		{
 | 
							{
 | 
				
			||||||
			Repositories = new RepositoryActivator();
 | 
								Repositories = new RepositoryActivator();
 | 
				
			||||||
			_repository = Repositories.LibraryManager.GetRepository<T>();
 | 
								_repository = Repositories.LibraryManager.GetRepository<T>();
 | 
				
			||||||
 | 
								Repositories.Context.AddTest<Show>();
 | 
				
			||||||
 | 
								if (new T() is not Show)
 | 
				
			||||||
				Repositories.Context.AddTest<T>();
 | 
									Repositories.Context.AddTest<T>();
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
		
 | 
							
 | 
				
			||||||
 | 
				
			|||||||
@ -45,7 +45,6 @@ namespace Kyoo.Tests
 | 
				
			|||||||
					SeasonNumber = 1,
 | 
										SeasonNumber = 1,
 | 
				
			||||||
					Title = "Season 1",
 | 
										Title = "Season 1",
 | 
				
			||||||
					Overview = "The first season",
 | 
										Overview = "The first season",
 | 
				
			||||||
					Show = Get<Show>(),
 | 
					 | 
				
			||||||
					StartDate = new DateTime(2020, 06, 05),
 | 
										StartDate = new DateTime(2020, 06, 05),
 | 
				
			||||||
					EndDate =  new DateTime(2020, 07, 05),
 | 
										EndDate =  new DateTime(2020, 07, 05),
 | 
				
			||||||
					Poster = "poster"
 | 
										Poster = "poster"
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user