Skip to content

Commit

Permalink
Комментарии
Browse files Browse the repository at this point in the history
  • Loading branch information
inaidanov committed Mar 22, 2024
1 parent 650aaae commit c99efbf
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
</configSections>
<connectionStrings>
<!-- Please set up your own database connection strings before you run integrated tests. -->
<add name="ConnectionStringPostgres" connectionString="" />
<add name="ConnectionStringPostgres" connectionString="SERVER=localhost;User ID=postgres;Password=postgres;Port=5432" />
<add name="ConnectionStringOracle" connectionString="" />
<add name="ConnectionStringMssql" connectionString="" />
<add name="ConnectionStringLocalSqlServer" connectionString="Data Source=(LocalDb)\v11.0;" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,11 @@ public void MasterChangedTest()

using (HttpResponseMessage response = args.HttpClient.PatchAsJsonStringAsync(requestUrl, requestJsonData).Result)
{
// Если приходит код 200, значит, настройка не ломает загрузку. Фактическую проверку того, что кошка загрузилась в LightLoaded надо делать через отладчик.
// Если приходит код 200, значит, настройка не ломает загрузку.
// Фактическую проверку того, что кошка загрузилась в LightLoaded надо делать через отладчик.
Assert.Equal(HttpStatusCode.NoContent, response.StatusCode);

// TODO: проверка на экономную загрузку мастера.
}
});
}
Expand Down Expand Up @@ -141,14 +144,15 @@ public void MasterPropsChangedBatchTest()
using (HttpResponseMessage response = args.HttpClient.SendAsync(batchRequest).Result)
{
// Assert.
// TODO: проверка на экономную загрузку атрибутов.
CheckODataBatchResponseStatusCode(response, new HttpStatusCode[] { HttpStatusCode.OK, HttpStatusCode.OK });
Котенок котенокLoaded = args.DataService.Query<Котенок>(котенокDynamicView).FirstOrDefault(x => x.__PrimaryKey == котенок.__PrimaryKey);
Кошка кошкаLoaded = args.DataService.Query<Кошка>(кошкаDynamicView).FirstOrDefault(x => x.__PrimaryKey == кошка.__PrimaryKey);
Assert.NotNull(котенокLoaded);
Assert.NotNull(кошкаLoaded);
Assert.Equal(1, котенокLoaded.Глупость);
Assert.Equal("Петрушка", кошкаLoaded.Кличка);

// TODO: проверка на экономную загрузку мастера.
}
});
}
Expand Down

0 comments on commit c99efbf

Please sign in to comment.