Skip to content

Commit

Permalink
Enable skipped test
Browse files Browse the repository at this point in the history
Enable skipped test that has actually been usable since #186 was merged.
Remove obsolete code to skip tests when a real CosmosDB instance isn't configured.
  • Loading branch information
martincostello committed Jul 1, 2018
1 parent c25eef6 commit 135aef2
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 17 deletions.
9 changes: 6 additions & 3 deletions tests/LondonTravel.Site.Tests/Integration/AccountTests.cs
Expand Up @@ -28,12 +28,10 @@ public AccountTests(TestServerFixture fixture)
{
}

[SkippableFact]
[Fact]
public async Task Can_Perform_Operations_On_Users_And_Get_Preferences_From_Api()
{
// Arrange
Skip.IfNot(CosmosDB.IsConfigured());

var emailAddress = $"some.user.{Guid.NewGuid()}@some.domain.com";

var user = new LondonTravelUser()
Expand Down Expand Up @@ -166,6 +164,11 @@ public async Task Can_Perform_Operations_On_Users_And_Get_Preferences_From_Api()
/// </returns>
protected IUserStore<LondonTravelUser> GetUserStore()
{
// HACK Force server start-up
using (Fixture.CreateDefaultClient())
{
}

return Fixture.Server.Host.Services.GetService(typeof(IUserStore<LondonTravelUser>)) as IUserStore<LondonTravelUser>;
}
}
Expand Down
13 changes: 0 additions & 13 deletions tests/LondonTravel.Site.Tests/Integration/CosmosDB.cs

This file was deleted.

Expand Up @@ -26,7 +26,6 @@
<PackageReference Include="Shouldly" Version="3.0.0" />
<PackageReference Include="xunit" Version="2.3.1" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.3.1" />
<PackageReference Include="Xunit.SkippableFact" Version="1.3.6" />
</ItemGroup>
<ItemGroup>
<Service Include="{82a7f48d-3b50-4b1e-b82e-3ada8210c358}" />
Expand Down

0 comments on commit 135aef2

Please sign in to comment.