public void WhenAWhingeIsSaved(Table table) { try { var whinge = table.CreateInstance <WhingeEntity>(); whinge.Whinger = ((WhingerEntity)ScenarioContext.Current["CurrentWhinger"]).TwitterHandle; WhingeService.Save(whinge); } catch (Exception exception) { ThrownException = exception; } }
public void Whinge(WhingeEntity whinge) { var service = new WhingeService(ApplicationContext); service.Save(whinge); }