public void WhenCallCandidateApiToDefineCandidates(Table table) { var parent = context.Get <Models.Company>("parent").Id; var admin = config.UmbrellaAdmin; var cs = table.CreateSet <Models.Company>().Map(x => x.Id).ToList(); var req = new UmbrellaCandidatesDefinitionRequest(parent, cs); var res = api.CreateUmbrellaCandidatesWithHttpInfo(admin, req); res.StatusCode.ShouldBe(HttpStatusCode.Created); }