public void WhenRemoveAllCandidates() { void RemoveCompany(Models.Company c) { new P.UmbrellaAccountsAdmin(driver) .RemoveCandidate(c.Id); } var cs = new P.UmbrellaAccountsAdmin(driver).CandidateList() .Map(t => new Models.Company { Id = t.id, Name = t.name }); cs.Iter(RemoveCompany); context.Add("removed", cs); }
public void ThenTheCandidateListIsEmpty() { var list = new P.UmbrellaAccountsAdmin(driver).CandidateList(); list.ShouldBeEmpty(); }