From 52949ad802f77a2e5354a42a409b67db3bc18f39 Mon Sep 17 00:00:00 2001 From: bharathwajv Date: Sat, 7 May 2022 00:35:26 +0530 Subject: [PATCH] revert nuget update --- .editorconfig | 75 ------------------- src/Core/Application/Application.csproj | 18 +---- src/Core/Domain/Domain.csproj | 10 --- src/Core/Shared/Shared.csproj | 10 --- .../Initialization/ApplicationDbSeeder.cs | 4 +- src/Infrastructure/Token/CashierService.cs | 3 +- 6 files changed, 7 insertions(+), 113 deletions(-) diff --git a/.editorconfig b/.editorconfig index d4807f0..6900249 100644 --- a/.editorconfig +++ b/.editorconfig @@ -156,78 +156,3 @@ dotnet_diagnostic.CA1711.severity = none # CA1307: Specify StringComparison for clarity dotnet_diagnostic.CA1307.severity = none -csharp_using_directive_placement = outside_namespace:silent -csharp_prefer_simple_using_statement = true:suggestion -csharp_prefer_braces = true:silent -csharp_style_prefer_method_group_conversion = true:silent -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 -csharp_style_expression_bodied_lambdas = true:silent -csharp_style_expression_bodied_local_functions = false:silent - -[*.{cs,vb}] -#### 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.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 - -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.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_style_coalesce_expression = true:suggestion -dotnet_style_null_propagation = true:suggestion -dotnet_style_prefer_is_null_check_over_reference_equality_method = true:suggestion -dotnet_style_prefer_auto_properties = true:silent -dotnet_style_object_initializer = true:suggestion -dotnet_style_collection_initializer = true:suggestion -dotnet_style_prefer_simplified_boolean_expressions = true:suggestion -dotnet_style_prefer_conditional_expression_over_assignment = true:silent -dotnet_style_prefer_conditional_expression_over_return = true:silent -dotnet_style_explicit_tuple_names = true:suggestion -dotnet_style_prefer_inferred_tuple_names = true:suggestion -dotnet_style_prefer_inferred_anonymous_type_member_names = true:suggestion -dotnet_style_prefer_compound_assignment = true:suggestion -dotnet_style_prefer_simplified_interpolation = true:suggestion -dotnet_style_namespace_match_folder = true:suggestion diff --git a/src/Core/Application/Application.csproj b/src/Core/Application/Application.csproj index f0a6d9b..9024105 100644 --- a/src/Core/Application/Application.csproj +++ b/src/Core/Application/Application.csproj @@ -6,24 +6,14 @@ - - + + - - + + - - - all - runtime; build; native; contentfiles; analyzers; buildtransitive - - - all - runtime; build; native; contentfiles; analyzers; buildtransitive - - \ No newline at end of file diff --git a/src/Core/Domain/Domain.csproj b/src/Core/Domain/Domain.csproj index 5800ce9..636da1e 100644 --- a/src/Core/Domain/Domain.csproj +++ b/src/Core/Domain/Domain.csproj @@ -10,14 +10,4 @@ - - - all - runtime; build; native; contentfiles; analyzers; buildtransitive - - - all - runtime; build; native; contentfiles; analyzers; buildtransitive - - \ No newline at end of file diff --git a/src/Core/Shared/Shared.csproj b/src/Core/Shared/Shared.csproj index ca83c5e..ef14628 100644 --- a/src/Core/Shared/Shared.csproj +++ b/src/Core/Shared/Shared.csproj @@ -4,14 +4,4 @@ RewardsPlus.Shared RewardsPlus.Shared - - - all - runtime; build; native; contentfiles; analyzers; buildtransitive - - - all - runtime; build; native; contentfiles; analyzers; buildtransitive - - \ No newline at end of file diff --git a/src/Infrastructure/Persistence/Initialization/ApplicationDbSeeder.cs b/src/Infrastructure/Persistence/Initialization/ApplicationDbSeeder.cs index a803eb7..bafdda5 100644 --- a/src/Infrastructure/Persistence/Initialization/ApplicationDbSeeder.cs +++ b/src/Infrastructure/Persistence/Initialization/ApplicationDbSeeder.cs @@ -12,7 +12,7 @@ namespace RewardsPlus.Infrastructure.Persistence.Initialization; internal class ApplicationDbSeeder { - private readonly ICashierService _cashierService; //todo - - can use? + private readonly ICashierService _cashierService; //AskExperts - - can use? private readonly FSHTenantInfo _currentTenant; private readonly RoleManager _roleManager; private readonly UserManager _userManager; @@ -123,7 +123,7 @@ private async Task SeedAdminUserAsync() await _userManager.AddToRoleAsync(adminUser, FSHRoles.Admin); } - // buy some cash for admin - only for devlopment - OFD + // buy some cash for admin - only for devlopment await _cashierService.SeedAsync(adminUser.Email, adminUser.Id, 10000.00); } } \ No newline at end of file diff --git a/src/Infrastructure/Token/CashierService.cs b/src/Infrastructure/Token/CashierService.cs index 2a67805..ac50654 100644 --- a/src/Infrastructure/Token/CashierService.cs +++ b/src/Infrastructure/Token/CashierService.cs @@ -82,7 +82,7 @@ public async Task BuyAsync(BuyTokensRequest request, CancellationToken c if (curentUserTokenInfo == null) { - _context.Tokens?.AddAsync(new Token(request.Amount, _currentUser.GetUserId().ToString(), _currentUser?.GetUserEmail()), cancellationToken); + _context.Tokens?.AddAsync(new Token(request.Amount, _currentUser.GetUserId().ToString(), _currentUser.GetUserEmail()), cancellationToken); } else { @@ -134,5 +134,4 @@ public async Task SeedAsync(string seedUserEmail, string seedUserId, dou return string.Empty; } - } \ No newline at end of file