public async Task PostDatabaseAsync_ShouldReturnError_WhenDatabaseUsedDoesNotExist()
        {
            PostDatabaseResponse postDatabaseResponse = await _fixture.DatabaseClientNonExistent.PostDatabaseAsync(new PostDatabaseBody
            {
                Name = nameof(PostDatabaseAsync_ShouldThrow_WhenDatabaseUsedDoesNotExist)
            });

            Assert.False(postDatabaseResponse.IsSuccess);
            Assert.Equal(HttpStatusCode.NotFound, postDatabaseResponse.ResponseDetails.Code);
            Assert.Equal(1228, postDatabaseResponse.ResponseDetails.ErrorNum);
        }
        public async Task PostDatabaseAsync_ShouldReturnError_WhenDatabaseUsedIsNotSystem()
        {
            PostDatabaseResponse postDatabaseResponse = await _fixture.DatabaseClientOther.PostDatabaseAsync(new PostDatabaseBody
            {
                Name = nameof(PostDatabaseAsync_ShouldThrow_WhenDatabaseUsedIsNotSystem)
            });

            Assert.False(postDatabaseResponse.IsSuccess);
            Assert.Equal(HttpStatusCode.Forbidden, postDatabaseResponse.ResponseDetails.Code);
            Assert.Equal(1230, postDatabaseResponse.ResponseDetails.ErrorNum);
        }
        public async Task PostDatabaseAsync_ShouldSucceed()
        {
            PostDatabaseResponse result = await _fixture.DatabaseClientSystem.PostDatabaseAsync(
                new PostDatabaseBody()
            {
                Name = nameof(PostDatabaseAsync_ShouldSucceed)
            });

            await _fixture.DatabaseClientSystem.DeleteDatabaseAsync(nameof(PostDatabaseAsync_ShouldSucceed));

            Assert.False(result.Error);
            Assert.Equal(HttpStatusCode.Created, result.Code);
            Assert.True(result.Result);
        }
        public async Task PostDatabaseAsync_ShouldReturnError_WhenDatabaseToCreateAlreadyExist()
        {
            await _fixture.DatabaseClientSystem.PostDatabaseAsync(new PostDatabaseBody
            {
                Name = nameof(PostDatabaseAsync_ShouldThrow_WhenDatabaseToCreateAlreadyExist)
            });

            PostDatabaseResponse postDatabaseResponse = await _fixture.DatabaseClientSystem.PostDatabaseAsync(new PostDatabaseBody
            {
                Name = nameof(PostDatabaseAsync_ShouldThrow_WhenDatabaseToCreateAlreadyExist)
            });

            await _fixture.DatabaseClientSystem.DeleteDatabaseAsync(
                nameof(PostDatabaseAsync_ShouldThrow_WhenDatabaseToCreateAlreadyExist));

            Assert.False(postDatabaseResponse.IsSuccess);
            Assert.Equal(HttpStatusCode.Conflict, postDatabaseResponse.ResponseDetails.Code);
            Assert.Equal(1207, postDatabaseResponse.ResponseDetails.ErrorNum);
        }