public void WhenYoussefNavigatesToTheTicketWithTheTitle(string title) { var youssef = cast.Get <Youssef>(); stage.ShineTheSpotlightOn(youssef); When(youssef).AttemptsTo(OpenTheTicket.Titled(title)); }
public void GivenYoussefHasNavigatedToTheTicketWithTheTitleAndOpenedItForEditing(string ticketTitle) { var youssef = cast.Get <Youssef>(); stage.ShineTheSpotlightOn(youssef); Given(youssef).WasAbleTo(OpenTheTicket.ForEditingByTitle(ticketTitle)); }
public void GivenYoussefHasNavigatedToTheTicketWithTheTitle(string title) { var youssef = cast.Get <Youssef>(); stage.ShineTheSpotlightOn(youssef); Given(youssef).WasAbleTo(OpenTheTicket.Titled(title)); }
public void ThenTheyReadTheFirstCommentOnTheTicket(string ticketName) { var theActor = stage.GetTheActorInTheSpotlight(); Then(theActor).Should(OpenTheTicket.Titled(ticketName)); var elements = Then(theActor).ShouldSee(Elements.InThePageBody() .ThatAre(TicketDetail.CommentBodies) .Called("the comments")); context.Set(elements.Elements.First(), CurrentCommentKey); }
public void ThenTheyOpenATicketWithTheTitle(string title) { var theActor = stage.GetTheActorInTheSpotlight(); Then(theActor).Should(OpenTheTicket.Titled(title)); }
public void WhenTheyNavigateToTheTicketWithTheTitle(string title) { var theActor = stage.GetTheActorInTheSpotlight(); When(theActor).AttemptsTo(OpenTheTicket.Titled(title)); }