1010using SearchEngine . Data . Repository . Contracts ;
1111using SearchEngine . Infrastructure . Tokenizer ;
1212using SearchEngine . Infrastructure . Tokenizer . Contracts ;
13- using SearchEngine . Tests . Infrastructure ;
13+ using SearchEngine . Tests . Units . Mocks ;
1414
15- namespace SearchEngine . Tests . Integration ;
15+ namespace SearchEngine . Tests . Integrations . Infra ;
1616
17+ /// <summary>
18+ /// При конфинурации запуска используется SQLite, информация по данной бд: https://www.sqlite.org/lang.html
19+ /// </summary>
1720public class IntegrationStartup
1821{
1922 public static void ConfigureServices ( IServiceCollection services )
2023 {
2124 services
2225 . AddControllers ( )
23- // разберись почему требуется этот метод:
26+ // I. разберись почему требуется этот метод:
2427 // https://andrewlock.net/when-asp-net-core-cant-find-your-controller-debugging-application-parts/
2528 . AddApplicationPart ( typeof ( ReadController ) . Assembly ) ;
2629
@@ -31,14 +34,13 @@ public static void ConfigureServices(IServiceCollection services)
3134 services . AddTransient < ITokenizerProcessor , TokenizerProcessor > ( ) ;
3235 services . AddTransient < ITokenizerService , TokenizerService > ( ) ;
3336
34- // III. SQLITE : https://learn.microsoft.com/en-us/ef/core/get-started/overview/first-app?tabs=netcore-cli
35- // возможно, что данная папка есть только в windows :
37+ // II. SQLite : https://learn.microsoft.com/en-us/ef/core/get-started/overview/first-app?tabs=netcore-cli
38+ // проверено на Windows и на Ubuntu (в GitHub Actions CI) :
3639
3740 const Environment . SpecialFolder folder = Environment . SpecialFolder . LocalApplicationData ;
3841 var path = Environment . GetFolderPath ( folder ) ;
3942 var dbPath = System . IO . Path . Join ( path , "testing-2.db" ) ;
4043 var connectionString = $ "Data Source={ dbPath } ";
41- // https://www.sqlite.org/lang.html
4244
4345 services . AddDbContext < CatalogContext > ( options => options . UseSqlite ( connectionString ) ) ;
4446 }
0 commit comments