コード例 #1
0
        public async Task <ActionResult <FeatureTestResult> > PostAsync([FromBody] FeatureTestResult testResult, string branchName, string groupName, string title)
        {
            if (!testResult.FeatureTitle.Equals(title, StringComparison.OrdinalIgnoreCase))
            {
                return(BadRequest("The title provided by the POST data and the title in uri do not match!"));
            }

            await _featureManager.PersistFeatureTestResultAsync(testResult, branchName, groupName, UNKNOWN_VERSION);

            return(CreatedAtRoute("GetFeature", null));
        }