-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Library upgrade to version V2.10.1 #177
base: master
Are you sure you want to change the base?
Conversation
// then | ||
unauthorizedObjectResult.Should() | ||
.BeEquivalentTo(expectedUnauthorizedObjectResult); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is this deleted?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe got deleted by mistake. I've updated again. Will be see in the next revision once I push.
// Type exception: FormServiceException | ||
// INNER Exception: FailedFormServiceException | ||
|
||
// Current Inner Exception: SYSTEM.EXCEPTION |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No comments except for // given
, // when
and // then
innerException: innerException) | ||
{ } | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove extra empty line
@@ -23,74 +23,84 @@ internal partial class FormCoordinationService | |||
} | |||
catch (Models.Coordinations.Forms.Exceptions.NullObjectException nullObjectException) | |||
{ | |||
var message = "Form coordination validation errors occurred, please try again."; | |||
var formCoordinationValidationException = |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Put new line above this one.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do the same for the rest.
var formServiceException = new FormServiceException(failedFormServiceException); | ||
var formServiceException = new FormServiceException( | ||
message: "Form service error occurred, contact support.", | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove empty line
new FailedTypeDependencyValidationException( | ||
message: "Failed type dependency validation error occurred, fix errors and try again.", | ||
innerException: exception); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix tabs - only one tab
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pushed new changes as per review comments.
@@ -23,74 +23,94 @@ internal partial class FormCoordinationService | |||
} | |||
catch (Models.Coordinations.Forms.Exceptions.NullObjectException nullObjectException) | |||
{ | |||
|
|||
var message = "Form coordination validation errors occurred, please try again."; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Whern the right side of the equation in any code is not explicit about the type for instance new String()
you must explicitly specify the type on the left side.
In this case here, it would be string message
not var message
Read more here in the C# Coding Standard:
https://github.com/hassanhabib/CSharpCodingStandard
|
||
throw formCoordinationDependencyException; | ||
} | ||
catch (Exception exception) | ||
{ | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No empty lines between one-liners except for return
statements
var typeValidationException = new TypeValidationException(nullObjectException); | ||
var typeValidationException = new TypeValidationException( | ||
message: "Type validation errors occurred, fix errors and try again.", | ||
innerException: nullObjectException); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
New line here
@@ -21,7 +21,9 @@ private static void ValidatePropertyModelIsNotNull(PropertyModel propertyModel) | |||
if (propertyModel is null) | |||
{ | |||
var argumentNullException = new ArgumentNullException(nameof(propertyModel)); | |||
var nullPropertyModelException = new NullPropertyModelException(argumentNullException); | |||
var nullPropertyModelException = new NullPropertyModelException( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
new line above
@@ -114,7 +114,7 @@ public partial class FormOrchestrationServiceTests | |||
|
|||
var expectedFormOrchestrationDependencyException = | |||
new FormOrchestrationDependencyException( | |||
message: "Form orchestration dependency error occurred, fix errors and try again.", | |||
message: "Form orchestration dependency validation error occurred, fix the errors and try again.", | |||
innerException: dependancyException); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
parameters stay at the same level of indentation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pushed new changes as per review comments.
|
||
throw formCoordinationValidationException; | ||
} | ||
catch (FormOrchestrationValidationException formOrchestrationValidationException) | ||
{ | ||
string message = "Form coordination dependency validation error occurred, fix the errors and try again."; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
string message = "Form coordination dependency validation error occurred, fix the errors and try again."; | |
string message = "Form coordination dependency validation error occurred, fix the errors and try again."; | |
var formCoordinationDependencyValidationException = | |
new FormCoordinationDependencyValidationException(message, formOrchestrationValidationException); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ecemozgoncu example of what's needed to resolve comments in this file. Line break between single and multi-liners.
No description provided.