Skip to content

Commit

Permalink
Changed the namespace and project naming to SpecFlow.Contrib.*
Browse files Browse the repository at this point in the history
  • Loading branch information
Maarten Kools committed Dec 19, 2018
1 parent fb5e747 commit 1d3f795
Show file tree
Hide file tree
Showing 22 changed files with 42 additions and 43 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
A SpecFlow plugin that provides a generic way to implement a custom DI container

[![Build status](https://ci.appveyor.com/api/projects/status/jlhywg2nulwescgy/branch/master?svg=true)](https://ci.appveyor.com/project/maartenkools/specflow-genericcontainer/branch/master)
[![NuGet status](https://img.shields.io/nuget/v/SpecFlow.GenericContainer.svg)](https://www.nuget.org/packages/SpecFlow.GenericContainer/)
[![NuGet status](https://img.shields.io/nuget/v/SpecFlow.Contrib.GenericContainer.svg)](https://www.nuget.org/packages/SpecFlow.Contrib.GenericContainer/)

# Usage
1. Create a class that implements the `IGenericContainer` interface and wraps your DI container.
Expand Down
6 changes: 3 additions & 3 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ nuget:
disable_publish_on_pr: true

before_build:
- cmd: dotnet restore .\src\SpecFlow.GenericContainer.sln
- cmd: dotnet restore .\src\SpecFlow.Contrib.GenericContainer.sln
- cmd: gitversion /l console /output buildserver /updateAssemblyInfo

build_script:
- cmd: dotnet build .\src\SpecFlow.GenericContainer.sln -c Release -v q --no-restore /nologo
- cmd: dotnet pack .\src\SpecFlow.GenericContainer.sln -c Release -o "%APPVEYOR_BUILD_FOLDER%\artifacts" --include-symbols --no-build --no-restore /nologo -p:PackageVersion="%GitVersion_NuGetVersion%"
- cmd: dotnet build .\src\SpecFlow.Contrib.GenericContainer.sln -c Release -v q --no-restore /nologo
- cmd: dotnet pack .\src\SpecFlow.Contrib.GenericContainer.sln -c Release -o "%APPVEYOR_BUILD_FOLDER%\artifacts" --include-symbols --no-build --no-restore /nologo -p:PackageVersion="%GitVersion_NuGetVersion%"

test:
assemblies:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<!-- For additional details on SpecFlow configuration options see http://go.specflow.org/doc-config -->
<unitTestProvider name="NUnit" />
<plugins>
<add name="SpecFlow.GenericContainer" type="Runtime" />
<add name="SpecFlow.Contrib.GenericContainer" type="Runtime" />
</plugins>
</specFlow>
</configuration>
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System.Collections.Generic;

namespace SpecFlow.GenericContainer.SpecFlowPlugin.Tests
namespace SpecFlow.Contrib.GenericContainer.SpecFlowPlugin.Tests
{
public class Calculator : ICalculator
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
using System.Linq;
using TechTalk.SpecFlow;

namespace SpecFlow.GenericContainer.SpecFlowPlugin.Tests
namespace SpecFlow.Contrib.GenericContainer.SpecFlowPlugin.Tests
{
public static class Dependencies
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
In order to test the functionality of the plugin
I want to test whether SimpleInjector is used to resolve dependencies


Scenario Outline: Add two numbers
Given I have entered <operand1> into the calculator
And I have entered <operand2> into the calculator
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace SpecFlow.GenericContainer.SpecFlowPlugin.Tests
namespace SpecFlow.Contrib.GenericContainer.SpecFlowPlugin.Tests
{
public interface ICalculator
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using SimpleInjector;
using System;
using System;
using SimpleInjector;

namespace SpecFlow.GenericContainer.SpecFlowPlugin.Tests
namespace SpecFlow.Contrib.GenericContainer.SpecFlowPlugin.Tests
{
public class SimpleInjectorContainer : IGenericContainer
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\SpecFlow.GenericContainer.SpecFlowPlugin\SpecFlow.GenericContainer.SpecFlowPlugin.csproj" />
<ProjectReference Include="..\SpecFlow.Contrib.GenericContainer.SpecFlowPlugin\SpecFlow.Contrib.GenericContainer.SpecFlowPlugin.csproj" />
</ItemGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using NUnit.Framework;
using TechTalk.SpecFlow;

namespace SpecFlow.GenericContainer.SpecFlowPlugin.Tests.Steps
namespace SpecFlow.Contrib.GenericContainer.SpecFlowPlugin.Tests.Steps
{
[Binding]
public class IntegrationTestsSteps
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
using BoDi;
using System;
using System;
using BoDi;
using TechTalk.SpecFlow.Infrastructure;

namespace SpecFlow.GenericContainer.SpecFlowPlugin
namespace SpecFlow.Contrib.GenericContainer.SpecFlowPlugin
{
internal class BindingInstanceResolver : ITestObjectResolver
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
using TechTalk.SpecFlow.Bindings;
using TechTalk.SpecFlow.Bindings.Reflection;

namespace SpecFlow.GenericContainer.SpecFlowPlugin
namespace SpecFlow.Contrib.GenericContainer.SpecFlowPlugin
{
internal static class BindingRegistryExtensions
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
using System.Reflection;
using TechTalk.SpecFlow.Bindings;

namespace SpecFlow.GenericContainer.SpecFlowPlugin
namespace SpecFlow.Contrib.GenericContainer.SpecFlowPlugin
{
internal class ContainerFinder : IContainerFinder
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
using TechTalk.SpecFlow.Infrastructure;
using TechTalk.SpecFlow.Plugins;

namespace SpecFlow.GenericContainer.SpecFlowPlugin
namespace SpecFlow.Contrib.GenericContainer.SpecFlowPlugin
{
public class GenericContainerPlugin : IRuntimePlugin
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System;

namespace SpecFlow.GenericContainer.SpecFlowPlugin
namespace SpecFlow.Contrib.GenericContainer.SpecFlowPlugin
{
internal interface IContainerFinder
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System;

namespace SpecFlow.GenericContainer.SpecFlowPlugin
namespace SpecFlow.Contrib.GenericContainer.SpecFlowPlugin
{
public interface IGenericContainer
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.

using SpecFlow.GenericContainer.SpecFlowPlugin;
using System.Reflection;
using SpecFlow.Contrib.GenericContainer.SpecFlowPlugin;
using TechTalk.SpecFlow.Plugins;

[assembly: AssemblyTitle("SpecFlow.GenericContainer")]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System;

namespace SpecFlow.GenericContainer.SpecFlowPlugin
namespace SpecFlow.Contrib.GenericContainer.SpecFlowPlugin
{
[AttributeUsage(AttributeTargets.Method)]
public class ScenarioDependenciesAttribute : Attribute
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<PropertyGroup>
<TargetFrameworks>net45;net462;net47;net471</TargetFrameworks>
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
<PackageId>Specflow.GenericContainer</PackageId>
<PackageId>SpecFlow.Contrib.GenericContainer</PackageId>
<PackageLicenseUrl>http://opensource.org/licenses/mit-license.php</PackageLicenseUrl>
<PackageTags>specflow dependency-injection DI inversion-of-control IOC</PackageTags>
<PackageProjectUrl>https://github.com/maartenkools/SpecFlow.GenericContainer</PackageProjectUrl>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,6 @@ Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 15
VisualStudioVersion = 15.0.26124.0
MinimumVisualStudioVersion = 15.0.26124.0
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "SpecFlow.GenericContainer.SpecFlowPlugin", "SpecFlow.GenericContainer.SpecFlowPlugin\SpecFlow.GenericContainer.SpecFlowPlugin.csproj", "{55ABA621-6C7B-4DFC-B94F-F18DDC96E08B}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SpecFlow.GenericContainer.SpecFlowPlugin.Tests", "SpecFlow.GenericContainer.SpecFlowPlugin.Tests\SpecFlow.GenericContainer.SpecFlowPlugin.Tests.csproj", "{71FEA5D2-8972-4897-849B-4B397F506974}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{7A082465-18B3-4D71-8E97-E62D2A7E24B8}"
ProjectSection(SolutionItems) = preProject
..\.gitignore = ..\.gitignore
Expand All @@ -16,20 +12,24 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
..\README.md = ..\README.md
EndProjectSection
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "SpecFlow.Contrib.GenericContainer.SpecFlowPlugin", "SpecFlow.Contrib.GenericContainer.SpecFlowPlugin\SpecFlow.Contrib.GenericContainer.SpecFlowPlugin.csproj", "{665D661D-9B54-404D-987C-5AE9AA2C7A7A}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "SpecFlow.Contrib.GenericContainer.SpecFlowPlugin.Tests", "SpecFlow.Contrib.GenericContainer.SpecFlowPlugin.Tests\SpecFlow.Contrib.GenericContainer.SpecFlowPlugin.Tests.csproj", "{EB025E02-F329-42AF-A131-CB74C3CC6585}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{55ABA621-6C7B-4DFC-B94F-F18DDC96E08B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{55ABA621-6C7B-4DFC-B94F-F18DDC96E08B}.Debug|Any CPU.Build.0 = Debug|Any CPU
{55ABA621-6C7B-4DFC-B94F-F18DDC96E08B}.Release|Any CPU.ActiveCfg = Release|Any CPU
{55ABA621-6C7B-4DFC-B94F-F18DDC96E08B}.Release|Any CPU.Build.0 = Release|Any CPU
{71FEA5D2-8972-4897-849B-4B397F506974}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{71FEA5D2-8972-4897-849B-4B397F506974}.Debug|Any CPU.Build.0 = Debug|Any CPU
{71FEA5D2-8972-4897-849B-4B397F506974}.Release|Any CPU.ActiveCfg = Release|Any CPU
{71FEA5D2-8972-4897-849B-4B397F506974}.Release|Any CPU.Build.0 = Release|Any CPU
{665D661D-9B54-404D-987C-5AE9AA2C7A7A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{665D661D-9B54-404D-987C-5AE9AA2C7A7A}.Debug|Any CPU.Build.0 = Debug|Any CPU
{665D661D-9B54-404D-987C-5AE9AA2C7A7A}.Release|Any CPU.ActiveCfg = Release|Any CPU
{665D661D-9B54-404D-987C-5AE9AA2C7A7A}.Release|Any CPU.Build.0 = Release|Any CPU
{EB025E02-F329-42AF-A131-CB74C3CC6585}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{EB025E02-F329-42AF-A131-CB74C3CC6585}.Debug|Any CPU.Build.0 = Debug|Any CPU
{EB025E02-F329-42AF-A131-CB74C3CC6585}.Release|Any CPU.ActiveCfg = Release|Any CPU
{EB025E02-F329-42AF-A131-CB74C3CC6585}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand Down

0 comments on commit 1d3f795

Please sign in to comment.