Skip to content

Commit

Permalink
stylecop
Browse files Browse the repository at this point in the history
  • Loading branch information
scott-xu committed Oct 28, 2017
1 parent 8526d89 commit 08ddf1d
Show file tree
Hide file tree
Showing 26 changed files with 303 additions and 69 deletions.
16 changes: 15 additions & 1 deletion src/Ninject.MockingKernel.FakeItEasy/FakeItEasyMockProvider.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,20 @@
// -------------------------------------------------------------------------------------------------
// <copyright file="FakeItEasyMockProvider.cs" company="Ninject Project Contributors">
// Copyright (c) 2015-2017 Ninject Project Contributors
// Copyright (c) 2015-2017 Ninject Project Contributors. All rights reserved.
//
// Dual-licensed under the Apache License, Version 2.0, and the Microsoft Public License (Ms-PL).
// You may not use this file except in compliance with one of the Licenses.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
// or
// http://www.microsoft.com/opensource/licenses.mspx
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// </copyright>
// -------------------------------------------------------------------------------------------------

Expand All @@ -11,6 +24,7 @@ namespace Ninject.MockingKernel.FakeItEasy
using System.Collections.Generic;
using System.Linq;
using System.Reflection;

using global::FakeItEasy;
using global::FakeItEasy.Creation;
using Ninject.Activation;
Expand Down
15 changes: 14 additions & 1 deletion src/Ninject.MockingKernel.FakeItEasy/FakeItEasyMockingKernel.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,20 @@
// -------------------------------------------------------------------------------------------------
// <copyright file="FakeItEasyMockingKernel.cs" company="Ninject Project Contributors">
// Copyright (c) 2015-2017 Ninject Project Contributors
// Copyright (c) 2015-2017 Ninject Project Contributors. All rights reserved.
//
// Dual-licensed under the Apache License, Version 2.0, and the Microsoft Public License (Ms-PL).
// You may not use this file except in compliance with one of the Licenses.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
// or
// http://www.microsoft.com/opensource/licenses.mspx
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// </copyright>
// -------------------------------------------------------------------------------------------------

Expand Down
15 changes: 14 additions & 1 deletion src/Ninject.MockingKernel.FakeItEasy/FakeItEasyModule.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,20 @@
// -------------------------------------------------------------------------------------------------
// <copyright file="FakeItEasyModule.cs" company="Ninject Project Contributors">
// Copyright (c) 2015-2017 Ninject Project Contributors
// Copyright (c) 2015-2017 Ninject Project Contributors. All rights reserved.
//
// Dual-licensed under the Apache License, Version 2.0, and the Microsoft Public License (Ms-PL).
// You may not use this file except in compliance with one of the Licenses.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
// or
// http://www.microsoft.com/opensource/licenses.mspx
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// </copyright>
// -------------------------------------------------------------------------------------------------

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
<PropertyGroup>
<TargetFrameworks>netstandard2.0;net45</TargetFrameworks>
<Version>0.0.0</Version>
<Authors>Scott Xu (scott-xu@msn.com);Ninject Contributors</Authors>
<Authors>Ninject Project Contributors</Authors>
<Company>Ninject Project Contributors</Company>
<Product>Automocking for FakeItEasy</Product>
<Description>Automock implementation for FakeItEasy using Ninject to create the objects under test.</Description>
<Copyright>2015-2017 Ninject Project Contributors</Copyright>
<Copyright>2015-2017 Ninject Project Contributors.</Copyright>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<AssemblyOriginatorKeyFile>..\Ninject.snk</AssemblyOriginatorKeyFile>
<SignAssembly>true</SignAssembly>
Expand Down Expand Up @@ -42,11 +42,6 @@
</PackageReference>
</ItemGroup>

<ItemGroup Condition=" '$(TargetFramework)' == 'net45' ">
<Reference Include="System" />
<Reference Include="Microsoft.CSharp" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\Ninject.MockingKernel\Ninject.MockingKernel.csproj" />
</ItemGroup>
Expand Down
5 changes: 4 additions & 1 deletion src/Ninject.MockingKernel.FakeItEasy/stylecop.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,14 @@
"settings": {
"documentationRules": {
"companyName": "Ninject Project Contributors",
"copyrightText": " Copyright (c) 2015-2017 Ninject Project Contributors\r\n Dual-licensed under the Apache License, Version 2.0, and the Microsoft Public License (Ms-PL).",
"copyrightText": " Copyright (c) 2015-2017 Ninject Project Contributors. All rights reserved.\r\n\r\n Dual-licensed under the Apache License, Version 2.0, and the Microsoft Public License (Ms-PL).\r\n You may not use this file except in compliance with one of the Licenses.\r\n You may obtain a copy of the License at\r\n\r\n http://www.apache.org/licenses/LICENSE-2.0\r\n or\r\n http://www.microsoft.com/opensource/licenses.mspx\r\n\r\n Unless required by applicable law or agreed to in writing, software\r\n distributed under the License is distributed on an \"AS IS\" BASIS,\r\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n See the License for the specific language governing permissions and\r\n limitations under the License.",
"headerDecoration": "-------------------------------------------------------------------------------------------------"
},
"layoutRules": {
"newlineAtEndOfFile": "omit"
},
"orderingRules": {
"blankLinesBetweenUsingGroups": "require"
}
}
}
18 changes: 16 additions & 2 deletions src/Ninject.MockingKernel.Moq/DefaultMockRepositoryProvider.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,21 @@
// -------------------------------------------------------------------------------------------------
// <copyright file="DefaultMockRepositoryProvider.cs" company="Ninject Project Contributors">
// Copyright (c) 2010 bbv Software Services AG
// Copyright (c) 2011-2017 Ninject Project Contributors
// Copyright (c) 2010 bbv Software Services AG. All rights reserved.
// Copyright (c) 2010-2017 Ninject Project Contributors. All rights reserved.
//
// Dual-licensed under the Apache License, Version 2.0, and the Microsoft Public License (Ms-PL).
// You may not use this file except in compliance with one of the Licenses.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
// or
// http://www.microsoft.com/opensource/licenses.mspx
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// </copyright>
// -------------------------------------------------------------------------------------------------

Expand All @@ -11,6 +24,7 @@ namespace Ninject.MockingKernel.Moq
{
using System;
using System.Reflection;

using global::Moq;
using Ninject.Components;

Expand Down
18 changes: 16 additions & 2 deletions src/Ninject.MockingKernel.Moq/IMockRepositoryProvider.cs
Original file line number Diff line number Diff line change
@@ -1,15 +1,29 @@
// -------------------------------------------------------------------------------------------------
// <copyright file="IMockRepositoryProvider.cs" company="Ninject Project Contributors">
// Copyright (c) 2010 bbv Software Services AG
// Copyright (c) 2011-2017 Ninject Project Contributors
// Copyright (c) 2010 bbv Software Services AG. All rights reserved.
// Copyright (c) 2010-2017 Ninject Project Contributors. All rights reserved.
//
// Dual-licensed under the Apache License, Version 2.0, and the Microsoft Public License (Ms-PL).
// You may not use this file except in compliance with one of the Licenses.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
// or
// http://www.microsoft.com/opensource/licenses.mspx
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// </copyright>
// -------------------------------------------------------------------------------------------------

#if !SILVERLIGHT_30 && !SILVERLIGHT_20 && !NETCF
namespace Ninject.MockingKernel.Moq
{
using System.Reflection;

using global::Moq;
using Ninject.Components;

Expand Down
17 changes: 15 additions & 2 deletions src/Ninject.MockingKernel.Moq/MoqMockProvider.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,21 @@
// -------------------------------------------------------------------------------------------------
// <copyright file="MoqMockProvider.cs" company="Ninject Project Contributors">
// Copyright (c) 2010 bbv Software Services AG
// Copyright (c) 2011-2017 Ninject Project Contributors
// Copyright (c) 2010 bbv Software Services AG. All rights reserved.
// Copyright (c) 2010-2017 Ninject Project Contributors. All rights reserved.
//
// Dual-licensed under the Apache License, Version 2.0, and the Microsoft Public License (Ms-PL).
// You may not use this file except in compliance with one of the Licenses.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
// or
// http://www.microsoft.com/opensource/licenses.mspx
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// </copyright>
// -------------------------------------------------------------------------------------------------

Expand Down
17 changes: 15 additions & 2 deletions src/Ninject.MockingKernel.Moq/MoqMockingKernel.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,21 @@
// -------------------------------------------------------------------------------------------------
// <copyright file="MoqMockingKernel.cs" company="Ninject Project Contributors">
// Copyright (c) 2010 bbv Software Services AG
// Copyright (c) 2011-2017 Ninject Project Contributors
// Copyright (c) 2010 bbv Software Services AG. All rights reserved.
// Copyright (c) 2010-2017 Ninject Project Contributors. All rights reserved.
//
// Dual-licensed under the Apache License, Version 2.0, and the Microsoft Public License (Ms-PL).
// You may not use this file except in compliance with one of the Licenses.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
// or
// http://www.microsoft.com/opensource/licenses.mspx
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// </copyright>
// -------------------------------------------------------------------------------------------------

Expand Down
17 changes: 15 additions & 2 deletions src/Ninject.MockingKernel.Moq/MoqModule.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,21 @@
// -------------------------------------------------------------------------------------------------
// <copyright file="MoqModule.cs" company="Ninject Project Contributors">
// Copyright (c) 2010 bbv Software Services AG
// Copyright (c) 2011-2017 Ninject Project Contributors
// Copyright (c) 2010 bbv Software Services AG. All rights reserved.
// Copyright (c) 2010-2017 Ninject Project Contributors. All rights reserved.
//
// Dual-licensed under the Apache License, Version 2.0, and the Microsoft Public License (Ms-PL).
// You may not use this file except in compliance with one of the Licenses.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
// or
// http://www.microsoft.com/opensource/licenses.mspx
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// </copyright>
// -------------------------------------------------------------------------------------------------

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
<PropertyGroup>
<TargetFrameworks>netstandard2.0;net45</TargetFrameworks>
<Version>0.0.0</Version>
<Authors>Scott Xu (scott-xu@msn.com);Ninject Contributors</Authors>
<Authors>Ninject Project Contributors</Authors>
<Company>Ninject Project Contributors</Company>
<Product>Automocking for Moq</Product>
<Description>Automock implementation for Moq using Ninject to create the objects under test.</Description>
<Copyright>2010 bbv Software Services AG;2011-2017 Ninject Project Contributors</Copyright>
<Copyright>2010 bbv Software Services AG. 2010-2017 Ninject Project Contributors.</Copyright>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<AssemblyOriginatorKeyFile>..\Ninject.snk</AssemblyOriginatorKeyFile>
<SignAssembly>true</SignAssembly>
Expand Down Expand Up @@ -42,11 +42,6 @@
</PackageReference>
</ItemGroup>

<ItemGroup Condition=" '$(TargetFramework)' == 'net45' ">
<Reference Include="System" />
<Reference Include="Microsoft.CSharp" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\Ninject.MockingKernel\Ninject.MockingKernel.csproj" />
</ItemGroup>
Expand Down
17 changes: 15 additions & 2 deletions src/Ninject.MockingKernel.Moq/NinjectSettingsExtensions.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,21 @@
// -------------------------------------------------------------------------------------------------
// <copyright file="NinjectSettingsExtensions.cs" company="Ninject Project Contributors">
// Copyright (c) 2010 bbv Software Services AG
// Copyright (c) 2011-2017 Ninject Project Contributors
// Copyright (c) 2010 bbv Software Services AG. All rights reserved.
// Copyright (c) 2010-2017 Ninject Project Contributors. All rights reserved.
//
// Dual-licensed under the Apache License, Version 2.0, and the Microsoft Public License (Ms-PL).
// You may not use this file except in compliance with one of the Licenses.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
// or
// http://www.microsoft.com/opensource/licenses.mspx
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// </copyright>
// -------------------------------------------------------------------------------------------------

Expand Down
5 changes: 4 additions & 1 deletion src/Ninject.MockingKernel.Moq/stylecop.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,14 @@
"settings": {
"documentationRules": {
"companyName": "Ninject Project Contributors",
"copyrightText": " Copyright (c) 2010 bbv Software Services AG\r\n Copyright (c) 2011-2017 Ninject Project Contributors\r\n Dual-licensed under the Apache License, Version 2.0, and the Microsoft Public License (Ms-PL).",
"copyrightText": " Copyright (c) 2010 bbv Software Services AG. All rights reserved.\r\n Copyright (c) 2010-2017 Ninject Project Contributors. All rights reserved.\r\n\r\n Dual-licensed under the Apache License, Version 2.0, and the Microsoft Public License (Ms-PL).\r\n You may not use this file except in compliance with one of the Licenses.\r\n You may obtain a copy of the License at\r\n\r\n http://www.apache.org/licenses/LICENSE-2.0\r\n or\r\n http://www.microsoft.com/opensource/licenses.mspx\r\n\r\n Unless required by applicable law or agreed to in writing, software\r\n distributed under the License is distributed on an \"AS IS\" BASIS,\r\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n See the License for the specific language governing permissions and\r\n limitations under the License.",
"headerDecoration": "-------------------------------------------------------------------------------------------------"
},
"layoutRules": {
"newlineAtEndOfFile": "omit"
},
"orderingRules": {
"blankLinesBetweenUsingGroups": "require"
}
}
}
18 changes: 16 additions & 2 deletions src/Ninject.MockingKernel.NSubstitute/NSubstituteMockProvider.cs
Original file line number Diff line number Diff line change
@@ -1,15 +1,29 @@
// -------------------------------------------------------------------------------------------------
// <copyright file="NSubstituteMockProvider.cs" company="Ninject Project Contributors">
// Copyright (c) 2011 Andre Loker IT Services
// Copyright (c) 2012-2017 Ninject Project Contributors
// Copyright (c) 2011 Andre Loker IT Services. All rights reserved.
// Copyright (c) 2011-2017 Ninject Project Contributors. All rights reserved.
//
// Dual-licensed under the Apache License, Version 2.0, and the Microsoft Public License (Ms-PL).
// You may not use this file except in compliance with one of the Licenses.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
// or
// http://www.microsoft.com/opensource/licenses.mspx
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// </copyright>
// -------------------------------------------------------------------------------------------------

namespace Ninject.MockingKernel.NSubstitute
{
using System;
using System.Linq;

using Activation;
using Components;
using global::NSubstitute;
Expand Down
17 changes: 15 additions & 2 deletions src/Ninject.MockingKernel.NSubstitute/NSubstituteMockingKernel.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,21 @@
// -------------------------------------------------------------------------------------------------
// <copyright file="NSubstituteMockingKernel.cs" company="Ninject Project Contributors">
// Copyright (c) 2011 Andre Loker IT Services
// Copyright (c) 2012-2017 Ninject Project Contributors
// Copyright (c) 2011 Andre Loker IT Services. All rights reserved.
// Copyright (c) 2011-2017 Ninject Project Contributors. All rights reserved.
//
// Dual-licensed under the Apache License, Version 2.0, and the Microsoft Public License (Ms-PL).
// You may not use this file except in compliance with one of the Licenses.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
// or
// http://www.microsoft.com/opensource/licenses.mspx
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// </copyright>
// -------------------------------------------------------------------------------------------------

Expand Down
Loading

0 comments on commit 08ddf1d

Please sign in to comment.