Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
133 commits
Select commit Hold shift + click to select a range
de2ab62
fix: Modifed the FieldsController.cs for the test server to not retur…
StevanFreeborn Dec 11, 2022
a3d2687
fix: Added objects to the field data set returned by the FieldsContro…
StevanFreeborn Dec 11, 2022
c344a66
fix: Changed named value Date in FormulaOutputType enum to DateAndTim…
StevanFreeborn Dec 11, 2022
a9a60c0
fix: Changed named value Number in FormulaOutputType enum to Numeric …
StevanFreeborn Dec 11, 2022
008bf86
fix: modified FormulaOutputType List enum to have proper name ListVal…
StevanFreeborn Jan 15, 2023
f9e7e60
feat: added ReferencedAppId property to ReferenceField class
StevanFreeborn Jan 15, 2023
cf6ff74
Merge branch 'fix/incorrect-formula-output-type-enum-value' into forked
StevanFreeborn Jan 15, 2023
97e6e73
fix: add SurveyDelegation to FieldType enum
StevanFreeborn Jan 17, 2023
7659844
Merge branch 'fix/add-survey-delegation-field-type' into forked
StevanFreeborn Jan 17, 2023
3fc3c0a
fix: added support for survey delegation field. fix: added field to t…
StevanFreeborn Jan 17, 2023
fe9ab65
chore: upgrade test project to target dotnet 7 and upgraded package r…
StevanFreeborn Sep 14, 2023
8566db9
feat: add OnspringRequest model
StevanFreeborn Sep 14, 2023
00096af
feat: add method to OnspringClient that allows constructing an instan…
StevanFreeborn Sep 14, 2023
1b6959a
test: add test to verify create request method returns an OnspringReq…
StevanFreeborn Sep 14, 2023
3c38cc4
chore: stub out tests for OnspringRequest model
StevanFreeborn Sep 14, 2023
157f3a1
refactor: move OnspringRequest under fluent namespace
StevanFreeborn Sep 14, 2023
1dcfb18
chore: add generate editorcongfig
StevanFreeborn Sep 14, 2023
96d5779
style: fix spacing
StevanFreeborn Sep 14, 2023
7c0dcff
feat: add fluent interface for getting records from an app
StevanFreeborn Sep 14, 2023
3713821
fix: add missing WithFormat method. feat: add overload for SendAsync …
StevanFreeborn Sep 14, 2023
d63cf91
fix: remove other builder models
StevanFreeborn Sep 14, 2023
ba496f1
feat: add fluent interface for getting a record by id
StevanFreeborn Sep 14, 2023
99dd519
chore: remove unused usings
StevanFreeborn Sep 14, 2023
067ef49
style: fix spacing
StevanFreeborn Sep 15, 2023
de53a01
chore: add .vscode settings and extensions
StevanFreeborn Sep 15, 2023
e1ea831
feat: add fluent interface for getting records by ids
StevanFreeborn Sep 15, 2023
78558ca
tests: moved tests into integration namespace
StevanFreeborn Sep 18, 2023
0458c1f
feat: add custom filter operator enum
StevanFreeborn Sep 18, 2023
24df711
feat: add filter model
StevanFreeborn Sep 18, 2023
ffd4245
refactor: make interface force user to specific call path
StevanFreeborn Sep 18, 2023
6fa0e1f
refactor: make private readonly fields public props with private setters
StevanFreeborn Sep 18, 2023
00f324d
refactor: rename format property
StevanFreeborn Sep 18, 2023
c934c03
refactor: remove unnecessary properties from model
StevanFreeborn Sep 18, 2023
3964899
tests: add tests for fluent interface to query records
StevanFreeborn Sep 18, 2023
878e1c0
fix: add private backing field
StevanFreeborn Sep 18, 2023
8d4e983
chore: add Nsubstitute as a dep for mocking
StevanFreeborn Sep 18, 2023
3282bcd
chore: remove unused using
StevanFreeborn Sep 18, 2023
43a152e
tests: add unit tests for OnspringClient and OnspringRequest models
StevanFreeborn Sep 18, 2023
538a14d
chore: remove internals visible attribute
StevanFreeborn Sep 18, 2023
6fac46b
tests: add tests for GetRecordsRequestBuilder
StevanFreeborn Sep 18, 2023
9bfd9f5
tests: fix namespace
StevanFreeborn Sep 18, 2023
b76d6b5
tests: fix add missing attributes
StevanFreeborn Sep 18, 2023
230106d
tests: fix class init signature
StevanFreeborn Sep 18, 2023
bcc81f0
fix: move return types back to interfaces that expose the public prop…
StevanFreeborn Sep 18, 2023
7d4a526
tests: update tests
StevanFreeborn Sep 18, 2023
16b58f0
chore: add coverlet msbuild integration
StevanFreeborn Sep 18, 2023
2efb293
chore: update csproj to generate coverlet coverage on test runs
StevanFreeborn Sep 18, 2023
28fd6c4
chore: add report generator as dep
StevanFreeborn Sep 18, 2023
ca1b6b2
chore: add msbuild task to generate html coverage report
StevanFreeborn Sep 18, 2023
77dc592
chore: correct target framework
StevanFreeborn Sep 19, 2023
5119b70
chore: update report coverage script
StevanFreeborn Sep 19, 2023
d8e23b6
tests: add tests for filter operators
StevanFreeborn Sep 19, 2023
9781955
tests: add tests for filter model
StevanFreeborn Sep 19, 2023
a5a2c54
fix: adjust format of datetime filter string
StevanFreeborn Sep 19, 2023
20dbccb
tests: add tests for GetRecordsByAppRequestBuilderTests
StevanFreeborn Sep 19, 2023
df967cc
chore: stub out unit test classes
StevanFreeborn Sep 19, 2023
101e2cb
tests: add tests for GetRecordByIdRequestBuilder
StevanFreeborn Sep 19, 2023
85e3656
tests: adjust indentation
StevanFreeborn Sep 19, 2023
79344b8
tests: add tests for GetRecordsByAppPagedRequestBuilder
StevanFreeborn Sep 20, 2023
e434345
tests: add tests for GetRecordsByIdsRequestBuilder
StevanFreeborn Sep 20, 2023
310d4ef
refactor: move models and interfaces into folders by area by method
StevanFreeborn Sep 20, 2023
51b0951
feat: add models and interfaces for deleting records by id and ids
StevanFreeborn Sep 20, 2023
cc73a72
tests: organize test classes
StevanFreeborn Sep 20, 2023
0c8eb0b
tests: stub out delete tests
StevanFreeborn Sep 20, 2023
3f595ac
chore: update vscode extenions
StevanFreeborn Sep 20, 2023
81395ce
chore: fix generatehtmlcoveragereport target
StevanFreeborn Sep 20, 2023
edeb69c
tests: add tests for delete records builders
StevanFreeborn Sep 21, 2023
26573ec
tests: add integration tests for deleting records fluently
StevanFreeborn Sep 21, 2023
d0907f5
feat: add fluent interface for saving record
StevanFreeborn Sep 22, 2023
bb8b85a
feat: add fluent interface for checking connection
StevanFreeborn Sep 22, 2023
60077ea
chore: update settings
StevanFreeborn Sep 22, 2023
f445d61
feat: begin adding get report fluent interface
StevanFreeborn Sep 22, 2023
b2bd365
tests: assert on return interface types
StevanFreeborn Sep 22, 2023
fd3a9cb
tests: write tests for query records builder
StevanFreeborn Sep 22, 2023
22fa71b
tests: add GetReportRequestBuilder tests
StevanFreeborn Sep 22, 2023
ab35793
tests: add GetReportDataRequestBuilder tests
StevanFreeborn Sep 22, 2023
7f553b8
tests: add integration tests for getting report data with fluent inte…
StevanFreeborn Sep 22, 2023
8a0c80a
tests: update OnspringRequest tests
StevanFreeborn Sep 22, 2023
71a86a0
refactor: use single builder model for getting report
StevanFreeborn Sep 22, 2023
35cee6c
tests: add tests for GetReportsRequestBuilder
StevanFreeborn Sep 22, 2023
dfa88a5
chore: add todos
StevanFreeborn Sep 22, 2023
c418f04
feat: add fluent interface for saving list item
StevanFreeborn Sep 22, 2023
5737c5e
feat: add fluent interface for deleting list item
StevanFreeborn Sep 22, 2023
bf35f81
refactor: rename OnspringRequest to OnspringRequestBuilder
StevanFreeborn Sep 23, 2023
a5a6dda
feat: add get file fluent interface
StevanFreeborn Sep 23, 2023
661f74d
chore: organize
StevanFreeborn Sep 23, 2023
e644985
feat: add get file info fluent interfaces
StevanFreeborn Sep 23, 2023
7438c12
feat: add delete file fluent interface
StevanFreeborn Sep 23, 2023
3fbd924
feat: add fluent interface for adding file
StevanFreeborn Sep 23, 2023
a75887a
style: format README.md
StevanFreeborn Sep 23, 2023
bb36585
feat: add fluent interface for getting fields
StevanFreeborn Sep 23, 2023
25e8705
feat: add fluent interface for getting apps
StevanFreeborn Sep 24, 2023
414e6b3
tests: update OnspringClientTests
StevanFreeborn Sep 24, 2023
78eeba7
docs: add xml comments to IOnspringRequestBuilder interface
StevanFreeborn Sep 24, 2023
aa3723e
docs: add xml comments to IConnectionRequestBuilder interface
StevanFreeborn Sep 24, 2023
f40e5f6
docs: formatted migration doc
StevanFreeborn Sep 24, 2023
df564e4
docs: add comments to FilterOperator class
StevanFreeborn Sep 24, 2023
cea8428
docs: add comments to Filter class
StevanFreeborn Sep 24, 2023
861628d
docs: add comments to GetRecordsRequestBuilder
StevanFreeborn Sep 24, 2023
32b08fa
docs: add comments to QueryRecordsByAppPagedRequestBuilder
StevanFreeborn Sep 24, 2023
5281555
docs: add comments to QueryRecordsByAppPagedRequestBuilder
StevanFreeborn Sep 24, 2023
39b1dd1
docs: Add comments to QueryRecordsByAppPagedRequestBuilderOptions
StevanFreeborn Sep 24, 2023
9c70887
docs: add comments to GetRecordsByIdsRequestBuilder
StevanFreeborn Sep 24, 2023
3f5d892
docs: add comments to GetRecordsByAppRequestBuilder
StevanFreeborn Sep 24, 2023
5d2ca71
docs: add comments to GetRecordsByAppRequestBuilder
StevanFreeborn Sep 24, 2023
85c762f
docs: add comments to GetRecordByIdRequestBuilder
StevanFreeborn Sep 24, 2023
d405799
docs: more comments
StevanFreeborn Sep 24, 2023
28b6295
docs: update comments
StevanFreeborn Sep 24, 2023
dbb9dc5
docs: add comments to GetRecordsByAppPagedRequestBuilder
StevanFreeborn Sep 24, 2023
578d05d
docs: update comments
StevanFreeborn Sep 24, 2023
e41dc54
docs: add comments to DeleteRecordRequestBuilder
StevanFreeborn Sep 24, 2023
3db3a54
docs: add comments to DeleteRecordsByAppRequestBuilder
StevanFreeborn Sep 24, 2023
c6e37d2
docs: add comments to DeleteRecordsByIdsRequestBuilder
StevanFreeborn Sep 24, 2023
3087c03
docs: add comments to DeleteRecordByIdRequestBuilder
StevanFreeborn Sep 24, 2023
f63881e
docs: add comments to SaveRecordRequestBuilder
StevanFreeborn Sep 24, 2023
d71cf53
docs: add comments to GetReportsRequestBuilder
StevanFreeborn Sep 24, 2023
c76efa9
docs: add comments to GetReportRequestBuilder
StevanFreeborn Sep 24, 2023
af0b56d
docs: add comments to SaveListValueRequestBuilder
StevanFreeborn Sep 24, 2023
9d89cb6
docs: add comments to SaveListValueRequestBuilder
StevanFreeborn Sep 24, 2023
2e2579a
docs: add comments to DeleteListValueRequestBuilder
StevanFreeborn Sep 24, 2023
7deffe4
docs: add comments for get apps request builders
StevanFreeborn Sep 24, 2023
b61f05d
docs: add comments for get fields request builders
StevanFreeborn Sep 24, 2023
2104254
docs: add comments for getting file and file info builders
StevanFreeborn Sep 24, 2023
d72b963
docs: add comments to AddFileRequestBuilder
StevanFreeborn Sep 24, 2023
493242c
docs: add comments to DeleteFileRequestBuilder
StevanFreeborn Sep 24, 2023
bf4aaf6
docs: update README.md with information about fluent interface
StevanFreeborn Sep 24, 2023
6f8c7e0
docs: update README.md with information about fluent interface
StevanFreeborn Sep 24, 2023
e559ca0
Merge branch 'forked' into stevanfreeborn/feat/add-fluent-interface
StevanFreeborn Sep 24, 2023
a71cd6c
chore: run dotnet format on test files
StevanFreeborn Sep 24, 2023
5708650
Merge branch 'stevanfreeborn/feat/add-fluent-interface' of github.com…
StevanFreeborn Sep 24, 2023
3d1ac6c
chore: run dotnet format on fluent models
StevanFreeborn Sep 24, 2023
b377095
chore: run dotnet format on fluent interfaces
StevanFreeborn Sep 24, 2023
2cf5b3e
docs: update README.md
StevanFreeborn Sep 24, 2023
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
230 changes: 230 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,230 @@
# Remove the line below if you want to inherit .editorconfig settings from higher directories
root = true

# C# files
[*.cs]

#### Core EditorConfig Options ####

# Indentation and spacing
indent_size = 4
indent_style = space
tab_width = 4

# New line preferences
end_of_line = crlf
insert_final_newline = false

#### .NET Coding Conventions ####

# Organize usings
dotnet_separate_import_directive_groups = false
dotnet_sort_system_directives_first = false
file_header_template = unset

# this. and Me. preferences
dotnet_style_qualification_for_event = false
dotnet_style_qualification_for_field = false
dotnet_style_qualification_for_method = false
dotnet_style_qualification_for_property = false

# Language keywords vs BCL types preferences
dotnet_style_predefined_type_for_locals_parameters_members = true
dotnet_style_predefined_type_for_member_access = true

# Parentheses preferences
dotnet_style_parentheses_in_arithmetic_binary_operators = always_for_clarity
dotnet_style_parentheses_in_other_binary_operators = always_for_clarity
dotnet_style_parentheses_in_other_operators = never_if_unnecessary
dotnet_style_parentheses_in_relational_binary_operators = always_for_clarity

# Modifier preferences
dotnet_style_require_accessibility_modifiers = for_non_interface_members

# Expression-level preferences
dotnet_style_coalesce_expression = true
dotnet_style_collection_initializer = true
dotnet_style_explicit_tuple_names = true
dotnet_style_namespace_match_folder = true
dotnet_style_null_propagation = true
dotnet_style_object_initializer = true
dotnet_style_operator_placement_when_wrapping = beginning_of_line
dotnet_style_prefer_auto_properties = true
dotnet_style_prefer_compound_assignment = true
dotnet_style_prefer_conditional_expression_over_assignment = true
dotnet_style_prefer_conditional_expression_over_return = true
dotnet_style_prefer_foreach_explicit_cast_in_source = when_strongly_typed
dotnet_style_prefer_inferred_anonymous_type_member_names = true
dotnet_style_prefer_inferred_tuple_names = true
dotnet_style_prefer_is_null_check_over_reference_equality_method = true
dotnet_style_prefer_simplified_boolean_expressions = true
dotnet_style_prefer_simplified_interpolation = true

# Field preferences
dotnet_style_readonly_field = true

# Parameter preferences
dotnet_code_quality_unused_parameters = all

# Suppression preferences
dotnet_remove_unnecessary_suppression_exclusions = none

# New line preferences
dotnet_style_allow_multiple_blank_lines_experimental = true
dotnet_style_allow_statement_immediately_after_block_experimental = true

#### C# Coding Conventions ####

# var preferences
csharp_style_var_elsewhere = false
csharp_style_var_for_built_in_types = false
csharp_style_var_when_type_is_apparent = false

# Expression-bodied members
csharp_style_expression_bodied_accessors = true
csharp_style_expression_bodied_constructors = false
csharp_style_expression_bodied_indexers = true
csharp_style_expression_bodied_lambdas = true
csharp_style_expression_bodied_local_functions = false
csharp_style_expression_bodied_methods = false
csharp_style_expression_bodied_operators = false
csharp_style_expression_bodied_properties = true

# Pattern matching preferences
csharp_style_pattern_matching_over_as_with_null_check = true
csharp_style_pattern_matching_over_is_with_cast_check = true
csharp_style_prefer_extended_property_pattern = true
csharp_style_prefer_not_pattern = true
csharp_style_prefer_pattern_matching = true
csharp_style_prefer_switch_expression = true

# Null-checking preferences
csharp_style_conditional_delegate_call = true

# Modifier preferences
csharp_prefer_static_local_function = true
csharp_preferred_modifier_order = public,private,protected,internal,file,static,extern,new,virtual,abstract,sealed,override,readonly,unsafe,required,volatile,async
csharp_style_prefer_readonly_struct = true
csharp_style_prefer_readonly_struct_member = true

# Code-block preferences
csharp_prefer_braces = true
csharp_prefer_simple_using_statement = true
csharp_style_namespace_declarations = block_scoped
csharp_style_prefer_method_group_conversion = true
csharp_style_prefer_primary_constructors = true
csharp_style_prefer_top_level_statements = true

# Expression-level preferences
csharp_prefer_simple_default_expression = true
csharp_style_deconstructed_variable_declaration = true
csharp_style_implicit_object_creation_when_type_is_apparent = true
csharp_style_inlined_variable_declaration = true
csharp_style_prefer_index_operator = true
csharp_style_prefer_local_over_anonymous_function = true
csharp_style_prefer_null_check_over_type_check = true
csharp_style_prefer_range_operator = true
csharp_style_prefer_tuple_swap = true
csharp_style_prefer_utf8_string_literals = true
csharp_style_throw_expression = true
csharp_style_unused_value_assignment_preference = discard_variable
csharp_style_unused_value_expression_statement_preference = discard_variable

# 'using' directive preferences
csharp_using_directive_placement = outside_namespace

# New line preferences
csharp_style_allow_blank_line_after_colon_in_constructor_initializer_experimental = true
csharp_style_allow_blank_line_after_token_in_arrow_expression_clause_experimental = true
csharp_style_allow_blank_line_after_token_in_conditional_expression_experimental = true
csharp_style_allow_blank_lines_between_consecutive_braces_experimental = true
csharp_style_allow_embedded_statements_on_same_line_experimental = true

#### C# Formatting Rules ####

# New line preferences
csharp_new_line_before_catch = true
csharp_new_line_before_else = true
csharp_new_line_before_finally = true
csharp_new_line_before_members_in_anonymous_types = true
csharp_new_line_before_members_in_object_initializers = true
csharp_new_line_before_open_brace = all
csharp_new_line_between_query_expression_clauses = true

# Indentation preferences
csharp_indent_block_contents = true
csharp_indent_braces = false
csharp_indent_case_contents = true
csharp_indent_case_contents_when_block = true
csharp_indent_labels = one_less_than_current
csharp_indent_switch_labels = true

# Space preferences
csharp_space_after_cast = false
csharp_space_after_colon_in_inheritance_clause = true
csharp_space_after_comma = true
csharp_space_after_dot = false
csharp_space_after_keywords_in_control_flow_statements = true
csharp_space_after_semicolon_in_for_statement = true
csharp_space_around_binary_operators = before_and_after
csharp_space_around_declaration_statements = false
csharp_space_before_colon_in_inheritance_clause = true
csharp_space_before_comma = false
csharp_space_before_dot = false
csharp_space_before_open_square_brackets = false
csharp_space_before_semicolon_in_for_statement = false
csharp_space_between_empty_square_brackets = false
csharp_space_between_method_call_empty_parameter_list_parentheses = false
csharp_space_between_method_call_name_and_opening_parenthesis = false
csharp_space_between_method_call_parameter_list_parentheses = false
csharp_space_between_method_declaration_empty_parameter_list_parentheses = false
csharp_space_between_method_declaration_name_and_open_parenthesis = false
csharp_space_between_method_declaration_parameter_list_parentheses = false
csharp_space_between_parentheses = false
csharp_space_between_square_brackets = false

# Wrapping preferences
csharp_preserve_single_line_blocks = true
csharp_preserve_single_line_statements = true

#### Naming styles ####

# Naming rules

dotnet_naming_rule.interface_should_be_begins_with_i.severity = suggestion
dotnet_naming_rule.interface_should_be_begins_with_i.symbols = interface
dotnet_naming_rule.interface_should_be_begins_with_i.style = begins_with_i

dotnet_naming_rule.types_should_be_pascal_case.severity = suggestion
dotnet_naming_rule.types_should_be_pascal_case.symbols = types
dotnet_naming_rule.types_should_be_pascal_case.style = pascal_case

dotnet_naming_rule.non_field_members_should_be_pascal_case.severity = suggestion
dotnet_naming_rule.non_field_members_should_be_pascal_case.symbols = non_field_members
dotnet_naming_rule.non_field_members_should_be_pascal_case.style = pascal_case

# Symbol specifications

dotnet_naming_symbols.interface.applicable_kinds = interface
dotnet_naming_symbols.interface.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected
dotnet_naming_symbols.interface.required_modifiers =

dotnet_naming_symbols.types.applicable_kinds = class, struct, interface, enum
dotnet_naming_symbols.types.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected
dotnet_naming_symbols.types.required_modifiers =

dotnet_naming_symbols.non_field_members.applicable_kinds = property, event, method
dotnet_naming_symbols.non_field_members.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected
dotnet_naming_symbols.non_field_members.required_modifiers =

# Naming styles

dotnet_naming_style.pascal_case.required_prefix =
dotnet_naming_style.pascal_case.required_suffix =
dotnet_naming_style.pascal_case.word_separator =
dotnet_naming_style.pascal_case.capitalization = pascal_case

dotnet_naming_style.begins_with_i.required_prefix = I
dotnet_naming_style.begins_with_i.required_suffix =
dotnet_naming_style.begins_with_i.word_separator =
dotnet_naming_style.begins_with_i.capitalization = pascal_case
9 changes: 9 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"recommendations": [
"ms-dotnettools.csdevkit",
"formulahendry.dotnet-test-explorer",
"EditorConfig.EditorConfig",
"oderwat.indent-rainbow",
"aliasadidev.nugetpackagemanagergui"
]
}
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"dotnet-test-explorer.testArguments": "--settings runsettings/internal.runsettings"
}
52 changes: 34 additions & 18 deletions Onspring.API.SDK.Tests/Onspring.API.SDK.Tests.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net5.0</TargetFramework>
<TargetFramework>net7.0</TargetFramework>

<IsPackable>false</IsPackable>
</PropertyGroup>
Expand All @@ -11,34 +11,50 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.Mvc.Testing" Version="5.0.7" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.10.0" />
<PackageReference Include="MSTest.TestAdapter" Version="2.2.5" />
<PackageReference Include="MSTest.TestFramework" Version="2.2.5" />
<PackageReference Include="coverlet.collector" Version="3.0.3">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PackageReference Include="coverlet.msbuild" Version="6.0.0">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
<PackageReference Include="Microsoft.AspNetCore.Mvc.Testing" Version="7.0.11" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.7.2" />
<PackageReference Include="MSTest.TestAdapter" Version="3.1.1" />
<PackageReference Include="MSTest.TestFramework" Version="3.1.1" />
<PackageReference Include="coverlet.collector" Version="6.0.0">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="NSubstitute" Version="5.1.0" />
<PackageReference Include="ReportGenerator" Version="5.1.25" />
</ItemGroup>

<PropertyGroup>
<CollectCoverage>true</CollectCoverage>
<CoverletOutput>./TestResults/coverage/$(MSBuildProjectName)/</CoverletOutput>
<CoverletOutputFormat>opencover</CoverletOutputFormat>
</PropertyGroup>

<Target Name="GenerateHtmlCoverageReport" AfterTargets="GenerateCoverageResultAfterTest">
<Exec Command="$(UserProfile)\.nuget\packages\reportgenerator\5.1.25\tools\net7.0\ReportGenerator -reports:./TestResults/coverage/$(MSBuildProjectName)/*.xml -targetdir:./TestResults/coverage/$(MSBuildProjectName)/report/ -reporttypes:Html_Dark" />
</Target>

<PropertyGroup>
<RunSettingsFilePath>$(MSBuildProjectDirectory)\runsettings\internal.runsettings</RunSettingsFilePath>
</PropertyGroup>

<ItemGroup>
<ProjectReference Include="..\Onspring.API.SDK\Onspring.API.SDK.csproj" />
<ProjectReference Include="..\Onspring.API.SDK\Onspring.API.SDK.csproj" />
</ItemGroup>

<ItemGroup>
<None Update="Resources\Onspring-Logo.png">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Update="runsettings\external.runsettings">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Update="runsettings\internal.runsettings">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Update="Resources\Onspring-Logo.png">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Update="runsettings\external.runsettings">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Update="runsettings\internal.runsettings">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
</ItemGroup>

</Project>
11 changes: 11 additions & 0 deletions Onspring.API.SDK.Tests/TestServer/Controllers/FieldsController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,17 @@ private static List<object> GetTestFields()
Status = "Enabled",
Type = "Reference",
Multiplicity = "SingleSelect",
},
new
{
AppId = 1,
Id = 1,
IsRequired = false,
IsUnique = false,
Name = "Delegation",
Status = "Enabled",
Type = "SurveyDelegation",
Multiplicity = "SingleSelect",
}
};
}
Expand Down
Loading