Skip to content

Commit

Permalink
Increase coverage
Browse files Browse the repository at this point in the history
Increase code coverage for ending a session.
  • Loading branch information
martincostello committed Nov 25, 2023
1 parent 3d526cb commit 504591c
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion test/LondonTravel.Skill.Tests/EndToEndTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,17 @@ public async Task Alexa_Function_Can_Process_Launch_Request()
public async Task Alexa_Function_Can_Process_Session_Ended_Request()
{
// Arrange
SkillRequest request = CreateRequest<SessionEndedRequest>();
var session = new SessionEndedRequest()
{
Reason = Reason.ExceededMaxReprompts,
Error = new()
{
Message = "Too many requests.",
Type = AlexaErrorType.RateLimitExceeded,
},
};

SkillRequest request = CreateRequest(session);

// Act
var actual = await ProcessRequestAsync(request);
Expand Down

0 comments on commit 504591c

Please sign in to comment.