public void WhenCallCandidateApiToDeleteAllCandidates() { var parent = context.Get <Models.Company>("parent").Id; var admin = config.UmbrellaAdmin; try { var r = api.DeleteUmbrellaCandidatesDefinitionWithHttpInfo(parent, admin); r.StatusCode.ShouldBe(HttpStatusCode.OK); } catch (ApiException e) { e.ErrorCode.ShouldBe(404); } }