Skip to content
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

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

ecemozgoncu
Copy link

No description provided.

// then
unauthorizedObjectResult.Should()
.BeEquivalentTo(expectedUnauthorizedObjectResult);
}
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this deleted?

Copy link
Author

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.

Comment on lines 82 to 85
// Type exception: FormServiceException
// INNER Exception: FailedFormServiceException

// Current Inner Exception: SYSTEM.EXCEPTION
Copy link
Owner

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)
{ }


Copy link
Owner

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 =
Copy link
Owner

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.

Copy link
Owner

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.",

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove empty line

Comment on lines 62 to 64
new FailedTypeDependencyValidationException(
message: "Failed type dependency validation error occurred, fix errors and try again.",
innerException: exception);
Copy link
Owner

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

Copy link
Author

@ecemozgoncu ecemozgoncu left a 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.";
Copy link
Owner

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)
{

Copy link
Owner

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);
Copy link
Owner

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(
Copy link
Owner

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);
Copy link
Owner

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

Copy link
Author

@ecemozgoncu ecemozgoncu left a 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.";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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);

Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants