Exemplo n.º 1
0
        public async Task CheckIsAppStartingCorrectly()
        {
            var response = await this._testClient.GetAsync(_path);

            Assert.True(IsResponseContentNotEmpty.Check(response));
            Assert.AreEqual(HttpStatusCode.OK, response.StatusCode);
        }
Exemplo n.º 2
0
        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);
        }
Exemplo n.º 3
0
        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);
        }
Exemplo n.º 4
0
        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);
        }