本文整理汇总了C#中Story.Assert方法的典型用法代码示例。如果您正苦于以下问题:C# Story.Assert方法的具体用法?C# Story.Assert怎么用?C# Story.Assert使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Story
的用法示例。
在下文中一共展示了Story.Assert方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Batch_must_occur_within_30_seconds
public void Batch_must_occur_within_30_seconds()
{
var story = new Story("Must return an individual asset update in less than 30 seconds");
story.AsA("Dispatcher")
.IWant("To enter information into the system")
.SoThat("I can see the result in visualised in the external system")
.WithScenario("Item is updated into our internal system")
.Given(() => DataForItem_IsUpdatedInInternalSystem(56))
.And(Narrative.Text("Database trigger has occured"))
.And(Narrative.Text("New item exists in the queue"))
.When(Narrative.Exec("_mockConnector Service runs", StartTimer))
.And(() => GetFleedIdsFrom_Within_Secs("http://external.system.com", 20))
.And(() => HasMoreThan_Assets(310))
.And(() => GetsUpdatedItemsWithin_Secs(9))
.And(() => PutsSingleAsset_To_Within_Secs("281", "http://otherexternalsystem.com", 20))
.And(() => RetrievesNewDataFrom_ForAsset_XmlWithUtilisation_("http://otherexternalsystem.com", "281", 56))
.And(() => Within_Seconds(30));
story.Assert();
}