public async Task CheckIsAppStartingCorrectly() { var response = await this._testClient.GetAsync(_path); Assert.True(IsResponseContentNotEmpty.Check(response)); Assert.AreEqual(HttpStatusCode.OK, response.StatusCode); }
public async Task WithId_Return200() { var id = this._testFixture.CreatePostedIncidentApplicationInDb(this._applicant, this._suspiciousEmployee); var response = await this._testClient.GetAsync($"{_path}/{id}"); Assert.True(IsResponseContentNotEmpty.Check(response)); Assert.AreEqual(HttpStatusCode.OK, response.StatusCode); }
public async Task Get_Return200() { this._testFixture.CreateDraftApplicationInDb(this._applicant, this._suspiciousEmployee); var response = await this._testClient.GetAsync(_path); Assert.True(IsResponseContentNotEmpty.Check(response)); Assert.AreEqual(HttpStatusCode.OK, response.StatusCode); }
public async Task TestOdataSelect_Get_Return200() { var pathWithSelect = _path + "?$select=Title"; this._testFixture.CreateDraftApplicationInDb(this._applicant, this._suspiciousEmployee); var response = await this._testClient.GetAsync(pathWithSelect); Assert.True(IsResponseContentNotEmpty.Check(response)); Assert.AreEqual(HttpStatusCode.OK, response.StatusCode); }