Skip to content

Commit

Permalink
Merge pull request #140 from martincostello/Use-NuGet-Package
Browse files Browse the repository at this point in the history
Use AwsLambdaTestServer NuGet package
  • Loading branch information
martincostello committed Nov 2, 2019
2 parents 8a9e37d + 5c804e6 commit 2fe871e
Show file tree
Hide file tree
Showing 9 changed files with 5 additions and 1,026 deletions.
6 changes: 3 additions & 3 deletions test/LondonTravel.Skill.Tests/EndToEndTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
using Alexa.NET.Request;
using Alexa.NET.Request.Type;
using Alexa.NET.Response;
using MartinCostello.LondonTravel.Skill.Integration;
using MartinCostello.Testing.AwsLambdaTestServer;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Logging;
using Newtonsoft.Json;
Expand Down Expand Up @@ -44,7 +44,7 @@ void Configure(IServiceCollection services)

await server.StartAsync(cancellationTokenSource.Token);

ChannelReader<LambdaResponse> reader = await server.EnqueueAsync(json);
ChannelReader<LambdaTestResponse> reader = await server.EnqueueAsync(json);

// Queue a task to stop the Lambda function as soon as the response is processed
_ = Task.Run(async () =>
Expand All @@ -63,7 +63,7 @@ void Configure(IServiceCollection services)
await Function.RunAsync(httpClient, cancellationTokenSource.Token);

// Assert
reader.TryRead(out LambdaResponse result).ShouldBeTrue();
reader.TryRead(out LambdaTestResponse result).ShouldBeTrue();

result.ShouldNotBeNull();
result.IsSuccessful.ShouldBeTrue();
Expand Down
49 changes: 0 additions & 49 deletions test/LondonTravel.Skill.Tests/Integration/LambdaRequest.cs

This file was deleted.

32 changes: 0 additions & 32 deletions test/LondonTravel.Skill.Tests/Integration/LambdaResponse.cs

This file was deleted.

286 changes: 0 additions & 286 deletions test/LondonTravel.Skill.Tests/Integration/LambdaTestServer.cs

This file was deleted.

Loading

0 comments on commit 2fe871e

Please sign in to comment.