Esempio n. 1
0
        public async void RemoveRoleFromUserShouldReturnOk()
        {
            var httpResponse = await _fixture.DeleteHttpResult($"{UrlPath}{_userId2}/role/{_roleId1}");

            httpResponse.Should().NotBeNull();
            httpResponse.StatusCode.Should().Be(HttpStatusCode.OK);
        }
Esempio n. 2
0
        public async void DeleteRoleShouldReturnOk()
        {
            var result = await _fixture.DeleteHttpResult(UrlPath + _roleId3);

            result.Should().NotBeNull();
            result.StatusCode.Should().Be(HttpStatusCode.OK);
        }
Esempio n. 3
0
        public async void DeleteFormShouldReturnOkAndDeleteOneEntity()
        {
            var result = await _fixture.DeleteHttpResult(UrlPath + _formToDeleteId);

            result.Should().NotBeNull();
            result.StatusCode.Should().Be(HttpStatusCode.OK);

            var tryToLoadDeletedForm = await _fixture.GetHttpResult(UrlPath + _formToDeleteId);

            tryToLoadDeletedForm.Should().NotBeNull();
            tryToLoadDeletedForm.StatusCode.Should().Be(HttpStatusCode.NotFound);
        }
Esempio n. 4
0
        public async void DeleteConferenceByIdShouldReturnOkAndDeleteOneConference()
        {
            var httpResponse = await _fixture.GetHttpResult(UrlPath + _conferenceToDeleteId);

            httpResponse.Should().NotBeNull();
            httpResponse.StatusCode.Should().Be(HttpStatusCode.OK);

            var result = await _fixture.DeleteHttpResult(UrlPath + _conferenceToDeleteId);

            result.Should().NotBeNull();
            result.StatusCode.Should().Be(HttpStatusCode.OK);

            var httpResponseOfDeletedConference = await _fixture.GetHttpResult(UrlPath + _conferenceToDeleteId);

            httpResponseOfDeletedConference.Should().NotBeNull();
            httpResponseOfDeletedConference.StatusCode.Should().Be(HttpStatusCode.NotFound);
        }