Skip to content
This repository has been archived by the owner on Sep 23, 2021. It is now read-only.

Commit

Permalink
chore: bump deps
Browse files Browse the repository at this point in the history
  • Loading branch information
godrose authored Jun 23, 2021
1 parent c923317 commit 237ad3b
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<package xmlns="http://schemas.microsoft.com/packaging/2011/10/nuspec.xsd">
<metadata>
<id>LogoFX.Client.Testing.EndToEnd.SpecFlow</id>
<version>2.2.0-rc2</version>
<version>2.2.0-rc3</version>
<title>LogoFX.Client.Testing.EndToEnd.SpecFlow</title>
<authors>Gennady Verdel</authors>
<owners>Gennady Verdel</owners>
Expand All @@ -14,9 +14,9 @@
<summary>LogoFX Client Tests SpecFlow containing base class for SpecFlow bridge.</summary>
<releaseNotes>Updated dependent packages</releaseNotes>
<dependencies>
<dependency id="Attest.Testing.Contracts" version="2.1.1" />
<dependency id="Attest.Tests.Core" version="2.1.1" />
<dependency id="Attest.Tests.SpecFlow" version="2.1.1" />
<dependency id="Attest.Testing.Contracts" version="2.3.2" />
<dependency id="Attest.Tests.Core" version="2.3.2" />
<dependency id="Attest.Tests.SpecFlow" version="2.3.2" />
</dependencies>
</metadata>
</package>
2 changes: 1 addition & 1 deletion devops/publish/publish.bat
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
SET package_name=LogoFX.Client.Testing.EndToEnd.SpecFlow
SET package_version=2.2.0-rc2
SET package_version=2.2.0-rc3
cd ../../src
nuget restore
cd ../devops/build
Expand Down
33 changes: 21 additions & 12 deletions src/LogoFX.Client.Testing.EndToEnd.SpecFlow/EndToEndTestsBase.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
using Attest.Fake.Data;
using Attest.Testing.Contracts;
using Attest.Testing.Core.FakeData;
using Attest.Testing.Core;
using Attest.Testing.EndToEnd;
using Attest.Testing.SpecFlow;
using Attest.Testing.FakeData;
using TechTalk.SpecFlow;

namespace LogoFX.Client.Testing.EndToEnd.SpecFlow
Expand All @@ -11,10 +11,9 @@ namespace LogoFX.Client.Testing.EndToEnd.SpecFlow
/// Base class for SpecFlow bridge.
/// </summary>
public abstract class EndToEndTestsBase :
Attest.Testing.SpecFlow.EndToEndTestsBase
Attest.Testing.EndToEnd.SpecFlow.EndToEndTestsBase
{
private readonly IApplicationFacade _applicationFacade;
private readonly ScenarioHelper _scenarioHelper;

/// <summary>
/// Base class for client End-To-End tests which use fake data providers.
Expand All @@ -27,13 +26,16 @@ public abstract class WithFakeProviders : EndToEndTestsBase
/// </summary>
protected WithFakeProviders(
IApplicationFacade applicationFacade,
EndToEndScenarioDataStore endToEndScenarioDataStore,
ScenarioHelper scenarioHelper,
ScenarioContext scenarioContext,
BuildersCollectionContext buildersCollectionContext)
: base(applicationFacade, scenarioHelper, scenarioContext)
{
scenarioHelper.Add(new StartApplicationService.WithFakeProviders(applicationFacade, buildersCollectionContext), typeof(IStartApplicationService));
scenarioHelper.Add(new BuilderRegistrationService(buildersCollectionContext), typeof(IBuilderRegistrationService));
endToEndScenarioDataStore.StartApplicationService =
new StartApplicationService.WithFakeProviders(applicationFacade, buildersCollectionContext);
endToEndScenarioDataStore.BuilderRegistrationService =
new BuilderRegistrationService(buildersCollectionContext);
RegisterScreenObjectsCore();
}
}
Expand All @@ -47,10 +49,15 @@ public abstract class WithRealProviders : EndToEndTestsBase
/// <summary>
/// Initializes a new instance of the <see cref="EndToEndTestsBase.WithRealProviders"/> class.
/// </summary>
protected WithRealProviders(IApplicationFacade applicationFacade, ScenarioHelper scenarioHelper, ScenarioContext scenarioContext) :
protected WithRealProviders(
IApplicationFacade applicationFacade,
EndToEndScenarioDataStore endToEndScenarioDataStore,
ScenarioHelper scenarioHelper,
ScenarioContext scenarioContext) :
base(applicationFacade, scenarioHelper, scenarioContext)
{
scenarioHelper.Add(new StartApplicationService.WithRealProviders(applicationFacade), typeof(IStartApplicationService));
endToEndScenarioDataStore.StartApplicationService =
new StartApplicationService.WithRealProviders(applicationFacade);
RegisterScreenObjectsCore();
}
}
Expand All @@ -61,11 +68,13 @@ protected WithRealProviders(IApplicationFacade applicationFacade, ScenarioHelper
/// <param name="applicationFacade">The application facade.</param>
/// <param name="scenarioHelper">The scenario helper.</param>
/// <param name="scenarioContext">The scenario context.</param>
protected EndToEndTestsBase(IApplicationFacade applicationFacade, ScenarioHelper scenarioHelper, ScenarioContext scenarioContext)
:base(scenarioContext)
protected EndToEndTestsBase(
IApplicationFacade applicationFacade,
ScenarioHelper scenarioHelper,
ScenarioContext scenarioContext)
:base(scenarioContext)
{
_applicationFacade = applicationFacade;
_scenarioHelper = scenarioHelper;
}

/// <summary>
Expand All @@ -86,7 +95,7 @@ protected override void OnAfterTeardown()
{
base.OnAfterTeardown();
_applicationFacade.Stop();
_scenarioHelper.Clear();
//_scenarioHelper.Clear();
}
}
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
Expand All @@ -12,8 +12,9 @@
<DebugSymbols>true</DebugSymbols>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Attest.Testing.Contracts" Version="2.1.1" />
<PackageReference Include="Attest.Tests.Core" Version="2.1.1" />
<PackageReference Include="Attest.Tests.SpecFlow" Version="2.1.1" />
<PackageReference Include="Attest.Fake.Data" Version="2.3.2" />
<PackageReference Include="Attest.Testing.Contracts" Version="2.3.2" />
<PackageReference Include="Attest.Tests.Core" Version="2.3.2" />
<PackageReference Include="Attest.Tests.SpecFlow" Version="2.3.2" />
</ItemGroup>
</Project>

0 comments on commit 237ad3b

Please sign in to comment.