Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
84bdad0
Ignore .vs folder
timvandenhof Jul 22, 2021
e21bb84
Retarget test project from .NET 4.7.1 to 4.8
timvandenhof Jul 22, 2021
9db5a25
Ignore .vs folder correctly
timvandenhof Jul 22, 2021
5697827
Add .NET default editorconfig to prevent tabs
timvandenhof Jul 22, 2021
d90f3f5
Untabify mixed tab-spaces files
timvandenhof Jul 22, 2021
56a8df4
Update missing and invalid XMLDoc on iDEAL service.
timvandenhof Jul 22, 2021
df21896
Fix: The referenced component 'XPath2' could not be found.
timvandenhof Jul 22, 2021
9de2021
Fix: The referenced component 'XPath2' could not be found.
timvandenhof Jul 22, 2021
3bbbaea
Fix: The referenced component 'XPath2.Extensions' could not be found.
timvandenhof Jul 22, 2021
d69d82d
Fix: The referenced component 'RestEase' could not be found.
timvandenhof Jul 22, 2021
efab131
Fix: The referenced component 'MimeKitLite' could not be found.
timvandenhof Jul 22, 2021
f11c49f
Fix: The referenced component 'Handlebars' could not be found.
timvandenhof Jul 22, 2021
805f9e3
Fix: The referenced component 'System.Linq.Dynamic.Core' could not be…
timvandenhof Jul 22, 2021
02f7593
Fix: The referenced component 'System.ComponentModel.Annotations' cou…
timvandenhof Jul 22, 2021
30d4afa
Fix: CS0168 The variable 'exception' is declared but never used
timvandenhof Jul 22, 2021
9688ea7
Fix: CS0219 The variable 'qwe' is assigned but its value is never used
timvandenhof Jul 22, 2021
50d8a1c
Fix: Using apeared previous
timvandenhof Jul 22, 2021
8534042
Fix: IDE0018 Variable declaration can be inlined
timvandenhof Jul 22, 2021
3a83c11
Fix: IDE0016 Null check can be simplified
timvandenhof Jul 22, 2021
abb7776
Fix: IDE0017 Object initialization can be simplified
timvandenhof Jul 22, 2021
8eae745
Fix: IDE0028 Collection initialization can be simplified
timvandenhof Jul 22, 2021
f5f61ed
Fix: IDE0034 'default' expression can be simplified
timvandenhof Jul 22, 2021
9a94292
Fix: IDE0052 Private property 'IdealDataRequest.ConfiguredDataRequest…
timvandenhof Jul 22, 2021
3117f52
Fix: IDE0052 Private member 'KbcPaymentButtonRequestObject.Configured…
timvandenhof Jul 22, 2021
2801040
Fix: IDE0052 Private member 'EPSRequestObject.ConfiguredDataRequest' …
timvandenhof Jul 22, 2021
2f2d8f0
Fix: IDE0052 Private member 'EMandateRequestObject.ConfiguredTransact…
timvandenhof Jul 22, 2021
058dd3d
Fix: IDE0060 Remove unused parameter 'transaction' if it is not part …
timvandenhof Jul 22, 2021
1d0df09
Fix: IDE0052 Private property 'SubscriptionRequestTests.BuckarooClien…
timvandenhof Jul 22, 2021
b488720
Removed SubscriptionRequestTests as it does not contain tests
timvandenhof Jul 22, 2021
409ea40
Fix: CS0618 'TransactionRefundInfo.MultipleConfiguredTransactionRefun…
timvandenhof Jul 22, 2021
b1c936f
Fix: IDE0038 Use pattern matching
timvandenhof Jul 22, 2021
6922964
Fix: IDE0059 Unnecessary assignment of a value to 'services' ==> Brea…
timvandenhof Jul 22, 2021
611d38e
Fix: IDE0059 Unnecessary assignment of a value to 'list2'
timvandenhof Jul 22, 2021
950b68a
Fix: IDE0059 Unnecessary assignment of a value to 'actionError'
timvandenhof Jul 22, 2021
de573bd
Supress: IDE0059 Unnecessary assignment of a value ==> In tests, see …
timvandenhof Jul 22, 2021
33e52b9
Fix: IDE0059 Unnecessary assignment of a value to 'response'
timvandenhof Jul 22, 2021
59fae3d
Fix: IDE0059 Unnecessary assignment of a value to 'parameters'
timvandenhof Jul 22, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
123 changes: 123 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,123 @@
# To learn more about .editorconfig see https://aka.ms/editorconfigdocs
###############################
# Core EditorConfig Options #
###############################
# All files
[*]
indent_style = space
# Code files
[*.{cs,csx,vb,vbx}]
indent_size = 4
insert_final_newline = true
charset = utf-8-bom
###############################
# .NET Coding Conventions #
###############################
[*.{cs,vb}]
# Organize usings
dotnet_sort_system_directives_first = true
# this. preferences
dotnet_style_qualification_for_field = false:silent
dotnet_style_qualification_for_property = false:silent
dotnet_style_qualification_for_method = false:silent
dotnet_style_qualification_for_event = false:silent
# Language keywords vs BCL types preferences
dotnet_style_predefined_type_for_locals_parameters_members = true:silent
dotnet_style_predefined_type_for_member_access = true:silent
# Parentheses preferences
dotnet_style_parentheses_in_arithmetic_binary_operators = always_for_clarity:silent
dotnet_style_parentheses_in_relational_binary_operators = always_for_clarity:silent
dotnet_style_parentheses_in_other_binary_operators = always_for_clarity:silent
dotnet_style_parentheses_in_other_operators = never_if_unnecessary:silent
# Modifier preferences
dotnet_style_require_accessibility_modifiers = for_non_interface_members:silent
dotnet_style_readonly_field = true:suggestion
# Expression-level preferences
dotnet_style_object_initializer = true:suggestion
dotnet_style_collection_initializer = true:suggestion
dotnet_style_explicit_tuple_names = true:suggestion
dotnet_style_null_propagation = true:suggestion
dotnet_style_coalesce_expression = true:suggestion
dotnet_style_prefer_is_null_check_over_reference_equality_method = true:silent
dotnet_style_prefer_inferred_tuple_names = true:suggestion
dotnet_style_prefer_inferred_anonymous_type_member_names = true:suggestion
dotnet_style_prefer_auto_properties = true:silent
dotnet_style_prefer_conditional_expression_over_assignment = true:silent
dotnet_style_prefer_conditional_expression_over_return = true:silent
###############################
# Naming Conventions #
###############################
# Style Definitions
dotnet_naming_style.pascal_case_style.capitalization = pascal_case
# Use PascalCase for constant fields
dotnet_naming_rule.constant_fields_should_be_pascal_case.severity = suggestion
dotnet_naming_rule.constant_fields_should_be_pascal_case.symbols = constant_fields
dotnet_naming_rule.constant_fields_should_be_pascal_case.style = pascal_case_style
dotnet_naming_symbols.constant_fields.applicable_kinds = field
dotnet_naming_symbols.constant_fields.applicable_accessibilities = *
dotnet_naming_symbols.constant_fields.required_modifiers = const
###############################
# C# Coding Conventions #
###############################
[*.cs]
# var preferences
csharp_style_var_for_built_in_types = true:silent
csharp_style_var_when_type_is_apparent = true:silent
csharp_style_var_elsewhere = true:silent
# Expression-bodied members
csharp_style_expression_bodied_methods = false:silent
csharp_style_expression_bodied_constructors = false:silent
csharp_style_expression_bodied_operators = false:silent
csharp_style_expression_bodied_properties = true:silent
csharp_style_expression_bodied_indexers = true:silent
csharp_style_expression_bodied_accessors = true:silent
# Pattern matching preferences
csharp_style_pattern_matching_over_is_with_cast_check = true:suggestion
csharp_style_pattern_matching_over_as_with_null_check = true:suggestion
# Null-checking preferences
csharp_style_throw_expression = true:suggestion
csharp_style_conditional_delegate_call = true:suggestion
# Modifier preferences
csharp_preferred_modifier_order = public,private,protected,internal,static,extern,new,virtual,abstract,sealed,override,readonly,unsafe,volatile,async:suggestion
# Expression-level preferences
csharp_prefer_braces = true:silent
csharp_style_deconstructed_variable_declaration = true:suggestion
csharp_prefer_simple_default_expression = true:suggestion
csharp_style_pattern_local_over_anonymous_function = true:suggestion
csharp_style_inlined_variable_declaration = true:suggestion
###############################
# C# Formatting Rules #
###############################
# New line preferences
csharp_new_line_before_open_brace = all
csharp_new_line_before_else = true
csharp_new_line_before_catch = true
csharp_new_line_before_finally = true
csharp_new_line_before_members_in_object_initializers = true
csharp_new_line_before_members_in_anonymous_types = true
csharp_new_line_between_query_expression_clauses = true
# Indentation preferences
csharp_indent_case_contents = true
csharp_indent_switch_labels = true
csharp_indent_labels = flush_left
# Space preferences
csharp_space_after_cast = false
csharp_space_after_keywords_in_control_flow_statements = true
csharp_space_between_method_call_parameter_list_parentheses = false
csharp_space_between_method_declaration_parameter_list_parentheses = false
csharp_space_between_parentheses = false
csharp_space_before_colon_in_inheritance_clause = true
csharp_space_after_colon_in_inheritance_clause = true
csharp_space_around_binary_operators = before_and_after
csharp_space_between_method_declaration_empty_parameter_list_parentheses = false
csharp_space_between_method_call_name_and_opening_parenthesis = false
csharp_space_between_method_call_empty_parameter_list_parentheses = false
# Wrapping preferences
csharp_preserve_single_line_statements = true
csharp_preserve_single_line_blocks = true
###############################
# VB Coding Conventions #
###############################
[*.vb]
# Modifier preferences
visual_basic_preferred_modifier_order = Partial,Default,Private,Protected,Public,Friend,NotOverridable,Overridable,MustOverride,Overloads,Overrides,MustInherit,NotInheritable,Static,Shared,Shadows,ReadOnly,WriteOnly,Dim,Const,WithEvents,Widening,Narrowing,Custom,Async:suggestion
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -344,4 +344,6 @@ ASALocalRun/
healthchecksdb

# Backup folder for Package Reference Convert tool in Visual Studio 2017
MigrationBackup/
MigrationBackup/

.vs/**
1 change: 1 addition & 0 deletions .vs/VSWorkspaceState.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@
"ExpandedNodes": [
""
],
"SelectedNode": "\\BuckarooSdk.sln",
"PreviewInSolutionExplorer": false
}
Binary file modified .vs/slnx.sqlite
Binary file not shown.
2 changes: 1 addition & 1 deletion BuckarooSdk.Tests/App.config
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<add key="ClientSettingsProvider.ServiceUri" value=""/>
</appSettings>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.1"/>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8"/>
</startup>
<system.web>
<membership defaultProvider="ClientAuthenticationMembershipProvider">
Expand Down
39 changes: 5 additions & 34 deletions BuckarooSdk.Tests/BuckarooSdk.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>BuckarooSdk.Tests</RootNamespace>
<AssemblyName>BuckarooSdk.Tests</AssemblyName>
<TargetFrameworkVersion>v4.7.1</TargetFrameworkVersion>
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<ProjectTypeGuids>{3AC096D0-A1C2-E12C-1390-A8335801FDAB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
<VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">10.0</VisualStudioVersion>
Expand Down Expand Up @@ -66,10 +66,6 @@
<HintPath>..\packages\Fare.2.1.2\lib\net35\Fare.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="Handlebars, Version=1.9.5.0, Culture=neutral, PublicKeyToken=22225d0bf33cd661, processorArchitecture=MSIL">
<HintPath>..\packages\Handlebars.Net.1.9.5\lib\net452\Handlebars.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="Microsoft.AspNetCore, Version=2.1.2.0, Culture=neutral, PublicKeyToken=adb9793829ddae60, processorArchitecture=MSIL">
<HintPath>..\packages\Microsoft.AspNetCore.2.1.2\lib\netstandard2.0\Microsoft.AspNetCore.dll</HintPath>
<Private>True</Private>
Expand Down Expand Up @@ -258,10 +254,6 @@
<HintPath>..\packages\Microsoft.Net.Http.Headers.2.1.1\lib\netstandard2.0\Microsoft.Net.Http.Headers.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="MimeKitLite, Version=2.0.0.0, Culture=neutral, PublicKeyToken=bede1c8a46c66814, processorArchitecture=MSIL">
<HintPath>..\packages\MimeKitLite.2.0.7\lib\net45\MimeKitLite.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="Newtonsoft.Json, Version=12.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
<HintPath>..\packages\Newtonsoft.Json.12.0.3\lib\net45\Newtonsoft.Json.dll</HintPath>
<Private>True</Private>
Expand All @@ -273,19 +265,11 @@
<HintPath>..\packages\RandomDataGenerator.Net.1.0.7\lib\net45\RandomDataGenerator.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="RestEase, Version=1.4.7.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\RestEase.1.4.7\lib\net45\RestEase.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="System" />
<Reference Include="System.Collections.Immutable, Version=1.2.3.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
<HintPath>..\packages\System.Collections.Immutable.1.5.0\lib\netstandard2.0\System.Collections.Immutable.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="System.ComponentModel.Annotations, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
<HintPath>..\packages\System.ComponentModel.Annotations.4.7.0\lib\net461\System.ComponentModel.Annotations.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="System.Configuration" />
<Reference Include="System.Diagnostics.DiagnosticSource, Version=4.0.3.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
<HintPath>..\packages\System.Diagnostics.DiagnosticSource.4.5.0\lib\net46\System.Diagnostics.DiagnosticSource.dll</HintPath>
Expand All @@ -295,10 +279,6 @@
<HintPath>..\packages\System.IO.Pipelines.4.5.0\lib\netstandard2.0\System.IO.Pipelines.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="System.Linq.Dynamic.Core, Version=1.0.9.0, Culture=neutral, PublicKeyToken=0f07ec44de6ac832, processorArchitecture=MSIL">
<HintPath>..\packages\System.Linq.Dynamic.Core.1.0.9\lib\net46\System.Linq.Dynamic.Core.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="System.Memory, Version=4.0.1.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
<HintPath>..\packages\System.Memory.4.5.1\lib\netstandard2.0\System.Memory.dll</HintPath>
<Private>True</Private>
Expand Down Expand Up @@ -329,18 +309,6 @@
<Private>True</Private>
</Reference>
<Reference Include="System.Web.Extensions" />
<Reference Include="WireMock.Net, Version=1.0.7.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\WireMock.Net.1.0.7\lib\net461\WireMock.Net.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="XPath2, Version=1.0.7.0, Culture=neutral, PublicKeyToken=463c6d7fb740c7e5, processorArchitecture=MSIL">
<HintPath>..\packages\XPath2.1.0.6.1\lib\net40\XPath2.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="XPath2.Extensions, Version=1.0.6.1, Culture=neutral, PublicKeyToken=463c6d7fb740c7e5, processorArchitecture=MSIL">
<HintPath>..\packages\XPath2.Extensions.1.0.6.1\lib\net40\XPath2.Extensions.dll</HintPath>
<Private>True</Private>
</Reference>
</ItemGroup>
<Choose>
<When Condition="('$(VisualStudioVersion)' == '10.0' or '$(VisualStudioVersion)' == '') and '$(TargetFrameworkVersion)' == 'v3.5'">
Expand All @@ -360,6 +328,7 @@
<Compile Include="Constants\CustomImplementationLogger.cs" />
<Compile Include="Constants\TestSettings.cs" />
<Compile Include="General\GeneralTransactionTests.cs" />
<Compile Include="GlobalSuppressions.cs" />
<Compile Include="Mocks\Afterpay.cs" />
<Compile Include="Mocks\KlarnaKP.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
Expand Down Expand Up @@ -399,7 +368,6 @@
<Compile Include="Services\PaysafeCard\PaysafeCardTests.cs" />
<Compile Include="Services\SimpleSepaDirectDebit\SimpleSepaDirectDebitTests.cs" />
<Compile Include="Services\Sofort\SofortTests.cs" />
<Compile Include="Services\Subscriptions\SubscriptionRequestTests.cs" />
<Compile Include="Services\Transfer\TransferTests.cs" />
<Compile Include="Services\VisaElectron\VisaElectronTests.cs" />
<Compile Include="Services\Visa\VisaTests.cs" />
Expand All @@ -418,6 +386,9 @@
<Name>BuckarooSdk</Name>
</ProjectReference>
</ItemGroup>
<ItemGroup>
<Folder Include="Services\Subscriptions\" />
</ItemGroup>
<Choose>
<When Condition="'$(VisualStudioVersion)' == '10.0' And '$(IsCodedUITest)' == 'True'">
<ItemGroup>
Expand Down
Loading