Skip to content

Commit

Permalink
commenting out interactions
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexWeinstein92 committed Mar 6, 2024
1 parent 49bd5c2 commit 1874a9a
Show file tree
Hide file tree
Showing 2 changed files with 74 additions and 74 deletions.
110 changes: 55 additions & 55 deletions src/main/riddl/Gateway/PlaceGateway/placeStories.riddl
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,17 @@ epic CreateVenue is {
by author Alex
//"Create a new Venue"
case HappyPath is {
interaction is {
arbitrary step from user Member "provide venue information" to user App
briefly "initial invocation",
arbitrary step from user App send command Venue.CreateVenue to user GatewayAPI
briefly "send creation message",
arbitrary step from user GatewayAPI "Create Venue" to entity ImprovingApp.VenueContext.Venues
briefly "add new venue",
arbitrary step from entity ImprovingApp.VenueContext.Venue "VenueCreated" to pipe ImprovingApp.VenueContext.VenueEvents
briefly "venue added"
arbitrary step from pipe ImprovingApp.VenueContext.VenueEvents "VenueEnrolled" to user App
}
//interaction is {
// arbitrary step from user Member "provide venue information" to user App
// briefly "initial invocation",
// arbitrary step from user App send command Venue.CreateVenue to user GatewayAPI
// briefly "send creation message",
// arbitrary step from user GatewayAPI "Create Venue" to entity ImprovingApp.VenueContext.Venues
// briefly "add new venue",
// arbitrary step from entity ImprovingApp.VenueContext.Venue "VenueCreated" to pipe ImprovingApp.VenueContext.VenueEvents
// briefly "venue added"
// arbitrary step from pipe ImprovingApp.VenueContext.VenueEvents "VenueEnrolled" to user App
//}
example Success is {
when Member provides Venue object to App
then App sends CreateVenue message to GatewayAPI
Expand All @@ -36,17 +36,17 @@ epic CreateLocation is {
}
//"Create a new Location"
case HappyPath is {
interaction is {
arbitrary step from user Member "Location information" to user App
briefly "initial invocation",
arbitrary step from user App send command Location.CreateLocation to user GatewayAPI
briefly "send creation message",
arbitrary step from user GatewayAPI "Create Location" to entity ImprovingApp.LocationContext.Locations
briefly "add new location",
arbitrary step from entity ImprovingApp.LocationContext.Location "LocationCreated" to pipe ImprovingApp.LocationContext.LocationEvents
briefly "location added"
arbitrary step from pipe ImprovingApp.LocationContext.LocationEvents "LocationCreated" to user App
}
//interaction is {
// arbitrary step from user Member "Location information" to user App
// briefly "initial invocation",
// arbitrary step from user App send command Location.CreateLocation to user GatewayAPI
// briefly "send creation message",
// arbitrary step from user GatewayAPI "Create Location" to entity ImprovingApp.LocationContext.Locations
// briefly "add new location",
// arbitrary step from entity ImprovingApp.LocationContext.Location "LocationCreated" to pipe ImprovingApp.LocationContext.LocationEvents
// briefly "location added"
// arbitrary step from pipe ImprovingApp.LocationContext.LocationEvents "LocationCreated" to user App
//}
example Success is {
when Member provides Location object to App
then App sends CreateLocation message to GatewayAPI
Expand All @@ -70,17 +70,17 @@ epic UpdateLocationStatus is {
}
//"Update Location Status to Available"
case ToAvailableHappyPath is {
interaction is {
arbitrary step from user Member "presses button to update Location status to Available" to user App
briefly "initial invocation",
arbitrary step from user App send command Location.UpdateLocationStatus to user GatewayAPI
briefly "send update status message",
arbitrary step from user GatewayAPI "Update Location Status" to entity ImprovingApp.LocationContext.Locations
briefly "update location status",
arbitrary step from entity ImprovingApp.LocationContext.Location "LocationStatusUpdated" to pipe ImprovingApp.LocationContext.LocationEvents
briefly "location status updated"
arbitrary step from pipe ImprovingApp.LocationContext.LocationEvents "LocationStatusUpdated" to user App
}
//interaction is {
// arbitrary step from user Member "presses button to update Location status to Available" to user App
// briefly "initial invocation",
// arbitrary step from user App send command Location.UpdateLocationStatus to user GatewayAPI
// briefly "send update status message",
// arbitrary step from user GatewayAPI "Update Location Status" to entity ImprovingApp.LocationContext.Locations
// briefly "update location status",
// arbitrary step from entity ImprovingApp.LocationContext.Location "LocationStatusUpdated" to pipe ImprovingApp.LocationContext.LocationEvents
// briefly "location status updated"
// arbitrary step from pipe ImprovingApp.LocationContext.LocationEvents "LocationStatusUpdated" to user App
//}
example Success is {
when Member requests for UpdateLocationStatus to App with Available as its parameter
then App sends UpdateLocationStatus message to GatewayAPI
Expand All @@ -104,17 +104,17 @@ epic SearchAvailableLocations is {
}
//"Search for available Locations according to time range parameters"
case TimeSearchHappyPath is {
interaction is {
arbitrary step from user Member "searches for location availability with time based parameters" to user App
briefly "initial invocation",
arbitrary step from user App send command Location.SearchAvailableLocations to user GatewayAPI
briefly "send search message",
arbitrary step from user GatewayAPI "Search Available Locations" to entity ImprovingApp.LocationContext.Locations
briefly "search for available locations according to provided parameters",
arbitrary step from entity ImprovingApp.LocationContext.Location "LocationSearchResults" to pipe ImprovingApp.LocationContext.LocationEvents
briefly "location search results"
arbitrary step from pipe ImprovingApp.LocationContext.LocationEvents "LocationSearchResults" to user App
}
//interaction is {
// arbitrary step from user Member "searches for location availability with time based parameters" to user App
// briefly "initial invocation",
// arbitrary step from user App send command Location.SearchAvailableLocations to user GatewayAPI
// briefly "send search message",
// arbitrary step from user GatewayAPI "Search Available Locations" to entity ImprovingApp.LocationContext.Locations
// briefly "search for available locations according to provided parameters",
// arbitrary step from entity ImprovingApp.LocationContext.Location "LocationSearchResults" to pipe ImprovingApp.LocationContext.LocationEvents
// briefly "location search results"
// arbitrary step from pipe ImprovingApp.LocationContext.LocationEvents "LocationSearchResults" to user App
//}
example Success is {
when Member requests for SearchAvailableLocations to App with a time range or series of them as its parameter
then App sends SearchAvailableLocations message to GatewayAPI
Expand All @@ -127,17 +127,17 @@ epic SearchAvailableLocations is {
}
//"Search for available Locations according to capacity parameters"
case CapacitySearchHappyPath is {
interaction is {
arbitrary step from user Member "SearchAvailableLocations" to user App
briefly "initial invocation",
arbitrary step from user App send command Location.SearchAvailableLocations to user GatewayAPI
briefly "send search message",
arbitrary step from user GatewayAPI "searches for location availability with capacity based parameters" to entity ImprovingApp.LocationContext.Locations
briefly "search for available locations according to provided parameters",
arbitrary step from entity ImprovingApp.LocationContext.Location "LocationSearchResults" to pipe ImprovingApp.LocationContext.LocationEvents
briefly "location search results"
arbitrary step from pipe ImprovingApp.LocationContext.LocationEvents "LocationSearchResults" to user App
}
//interaction is {
// arbitrary step from user Member "SearchAvailableLocations" to user App
// briefly "initial invocation",
// arbitrary step from user App send command Location.SearchAvailableLocations to user GatewayAPI
// briefly "send search message",
// arbitrary step from user GatewayAPI "searches for location availability with capacity based parameters" to entity ImprovingApp.LocationContext.Locations
// briefly "search for available locations according to provided parameters",
// arbitrary step from entity ImprovingApp.LocationContext.Location "LocationSearchResults" to pipe ImprovingApp.LocationContext.LocationEvents
// briefly "location search results"
// arbitrary step from pipe ImprovingApp.LocationContext.LocationEvents "LocationSearchResults" to user App
//}
example Success is {
when Member requests SearchAvailableLocations to App with a maxCapacity as its parameter
then App sends SearchAvailableLocations message to GatewayAPI
Expand Down
38 changes: 19 additions & 19 deletions src/main/riddl/Gateway/ReservationGateway/reservationStories.riddl
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ epic CreateReservation {

//"Create a new Reservation without booking it"
case HappyPath is {
interaction is {
step from user Member "provides a ReservationId" to user App
briefly "initial invocation",
step from user App send command Reservation.CreateReservation to user GatewayAPI
//interaction is {
// step from user Member "provides a ReservationId" to user App
// briefly "initial invocation",
// step from user App send command Reservation.CreateReservation to user GatewayAPI
// briefly "send creation message",
// step from user GatewayAPI "Create Reservation" to entity ImprovingApp.ReservationContext.Reservations
// briefly "create reservation",
Expand Down Expand Up @@ -37,11 +37,11 @@ epic BookReservation is {
}
//"Book a new Reservation by picking from a list, given time parameters"
case TimePickHappyPath is {
interaction is {
step from user Member "provide time range" to user App
briefly "initial invocation",
step from user App send command Reservation.FindLocationsAvailability to user GatewayAPI
briefly "send availability query",
//interaction is {
// step from user Member "provide time range" to user App
// briefly "initial invocation",
// step from user App send command Reservation.FindLocationsAvailability to user GatewayAPI
// briefly "send availability query",
// step from user GatewayAPI "Find Availability for Locations" to entity ImprovingApp.LocationContext.Locations
// briefly "find available locations given parameters",
// step from entity ImprovingApp.LocationContext.Locations "LocationsAvailabilityResults" to pipe ImprovingApp.LocationContext.LocationEvents
Expand Down Expand Up @@ -75,11 +75,11 @@ epic BookReservation is {
}
//"Book a new Reservation by picking from a list, given maxCapacity parameter"
case MaxCapacityPickHappyPath is {
interaction is {
step from user Member "provide maxCapacity" to user App
briefly "initial invocation",
step from user App send command Reservation.FindLocationsAvailability to user GatewayAPI
briefly "send availability query",
//interaction is {
// step from user Member "provide maxCapacity" to user App
// briefly "initial invocation",
// step from user App send command Reservation.FindLocationsAvailability to user GatewayAPI
// briefly "send availability query",
// step from user GatewayAPI "Find Availability for Locations" to entity ImprovingApp.LocationContext.Locations
// briefly "find available reservations given parameters",
// step from entity ImprovingApp.LocationContext.Locations "LocationsAvailabilityResults" to pipe ImprovingApp.LocationContext.LocationEvents
Expand Down Expand Up @@ -113,11 +113,11 @@ epic BookReservation is {
}
//"Book a new Reservation automatically based on what is available next, parameterized by Reservation info"
case NextAvailableHappyPath is {
interaction is {
step from user Member "asks to book next Reservation with search parameters based ReservationInfo in a provided ReservationId" to user App
briefly "initial invocation",
step from user App send command Location.BookNextAvailable to user GatewayAPI
briefly "send smart booking query",
//interaction is {
// step from user Member "asks to book next Reservation with search parameters based ReservationInfo in a provided ReservationId" to user App
// briefly "initial invocation",
// step from user App send command Location.BookNextAvailable to user GatewayAPI
// briefly "send smart booking query",
// step from user GatewayAPI "Book Next Available Location" to entity ImprovingApp.LocationContext.Locations
// briefly "find available locations & automatically book one given fields of info provided",
// step from entity ImprovingApp.ReservationContext.Reservations "ReservationBooked" to pipe ImprovingApp.ReservationContext.ReservationEvents
Expand Down

0 comments on commit 1874a9a

Please sign in to comment.