示例#1
0
        public void WhenYoussefNavigatesToTheTicketWithTheTitle(string title)
        {
            var youssef = cast.Get <Youssef>();

            stage.ShineTheSpotlightOn(youssef);
            When(youssef).AttemptsTo(OpenTheTicket.Titled(title));
        }
示例#2
0
        public void GivenYoussefHasNavigatedToTheTicketWithTheTitleAndOpenedItForEditing(string ticketTitle)
        {
            var youssef = cast.Get <Youssef>();

            stage.ShineTheSpotlightOn(youssef);
            Given(youssef).WasAbleTo(OpenTheTicket.ForEditingByTitle(ticketTitle));
        }
示例#3
0
        public void GivenYoussefHasNavigatedToTheTicketWithTheTitle(string title)
        {
            var youssef = cast.Get <Youssef>();

            stage.ShineTheSpotlightOn(youssef);
            Given(youssef).WasAbleTo(OpenTheTicket.Titled(title));
        }
示例#4
0
        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);
        }
示例#5
0
        public void ThenTheyOpenATicketWithTheTitle(string title)
        {
            var theActor = stage.GetTheActorInTheSpotlight();

            Then(theActor).Should(OpenTheTicket.Titled(title));
        }
示例#6
0
        public void WhenTheyNavigateToTheTicketWithTheTitle(string title)
        {
            var theActor = stage.GetTheActorInTheSpotlight();

            When(theActor).AttemptsTo(OpenTheTicket.Titled(title));
        }