Skip to content
This repository was archived by the owner on Dec 11, 2024. It is now read-only.

Commit 97ce473

Browse files
committed
code formatted
1 parent 9d69883 commit 97ce473

File tree

337 files changed

+4069
-2890
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

337 files changed

+4069
-2890
lines changed

src/Backend.Fx.sln.DotSettings

Lines changed: 80 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,86 @@
11
<wpf:ResourceDictionary xml:space="preserve" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:s="clr-namespace:System;assembly=mscorlib" xmlns:ss="urn:shemas-jetbrains-com:settings-storage-xaml" xmlns:wpf="http://schemas.microsoft.com/winfx/2006/xaml/presentation">
2-
<s:Boolean x:Key="/Default/UserDictionary/Words/=atislav_0022_002C/@EntryIndexedValue">True</s:Boolean>
2+
<s:String x:Key="/Default/CodeStyle/CodeFormatting/XmlDocFormatter/IndentTagContent/@EntryValue">DoNotTouch</s:String>
3+
<s:Boolean x:Key="/Default/CodeStyle/CSharpUsing/QualifiedUsingAtNestedScope/@EntryValue">True</s:Boolean>
4+
<s:Boolean x:Key="/Default/CodeStyle/CSharpVarKeywordUsage/PreferExplicitDiscardDeclaration/@EntryValue">True</s:Boolean>
5+
<s:Boolean x:Key="/Default/CodeStyle/CodeFormatting/CSharpFormat/ALIGN_FIRST_ARG_BY_PAREN/@EntryValue">False</s:Boolean>
6+
<s:Boolean x:Key="/Default/CodeStyle/CodeFormatting/CSharpFormat/ALIGN_LINQ_QUERY/@EntryValue">True</s:Boolean>
7+
<s:Boolean x:Key="/Default/CodeStyle/CodeFormatting/CSharpFormat/ALIGN_MULTILINE_ARGUMENT/@EntryValue">True</s:Boolean>
8+
<s:Boolean x:Key="/Default/CodeStyle/CodeFormatting/CSharpFormat/ALIGN_MULTILINE_ARRAY_AND_OBJECT_INITIALIZER/@EntryValue">False</s:Boolean>
9+
<s:Boolean x:Key="/Default/CodeStyle/CodeFormatting/CSharpFormat/ALIGN_MULTILINE_BINARY_EXPRESSIONS_CHAIN/@EntryValue">False</s:Boolean>
10+
<s:Boolean x:Key="/Default/CodeStyle/CodeFormatting/CSharpFormat/ALIGN_MULTILINE_CALLS_CHAIN/@EntryValue">False</s:Boolean>
11+
<s:Boolean x:Key="/Default/CodeStyle/CodeFormatting/CSharpFormat/ALIGN_MULTILINE_EXPRESSION/@EntryValue">False</s:Boolean>
12+
<s:Boolean x:Key="/Default/CodeStyle/CodeFormatting/CSharpFormat/ALIGN_MULTILINE_EXTENDS_LIST/@EntryValue">True</s:Boolean>
13+
<s:Boolean x:Key="/Default/CodeStyle/CodeFormatting/CSharpFormat/ALIGN_MULTILINE_FOR_STMT/@EntryValue">False</s:Boolean>
14+
<s:Boolean x:Key="/Default/CodeStyle/CodeFormatting/CSharpFormat/ALIGN_MULTILINE_PARAMETER/@EntryValue">False</s:Boolean>
15+
<s:Boolean x:Key="/Default/CodeStyle/CodeFormatting/CSharpFormat/ALIGN_MULTILINE_PROPERTY_PATTERN/@EntryValue">False</s:Boolean>
16+
<s:Boolean x:Key="/Default/CodeStyle/CodeFormatting/CSharpFormat/ALIGN_MULTILINE_SWITCH_EXPRESSION/@EntryValue">False</s:Boolean>
17+
<s:Boolean x:Key="/Default/CodeStyle/CodeFormatting/CSharpFormat/ALIGN_MULTIPLE_DECLARATION/@EntryValue">True</s:Boolean>
18+
<s:Boolean x:Key="/Default/CodeStyle/CodeFormatting/CSharpFormat/ALIGN_MULTLINE_TYPE_PARAMETER_CONSTRAINS/@EntryValue">True</s:Boolean>
19+
<s:Boolean x:Key="/Default/CodeStyle/CodeFormatting/CSharpFormat/ALIGN_MULTLINE_TYPE_PARAMETER_LIST/@EntryValue">False</s:Boolean>
20+
<s:Boolean x:Key="/Default/CodeStyle/CodeFormatting/CSharpFormat/ALIGN_TUPLE_COMPONENTS/@EntryValue">True</s:Boolean>
21+
<s:Boolean x:Key="/Default/CodeStyle/CodeFormatting/CSharpFormat/INDENT_ANONYMOUS_METHOD_BLOCK/@EntryValue">True</s:Boolean>
22+
<s:Boolean x:Key="/Default/CodeStyle/CodeFormatting/CSharpFormat/INDENT_NESTED_FIXED_STMT/@EntryValue">True</s:Boolean>
23+
<s:Boolean x:Key="/Default/CodeStyle/CodeFormatting/CSharpFormat/INDENT_NESTED_FOREACH_STMT/@EntryValue">True</s:Boolean>
24+
<s:Boolean x:Key="/Default/CodeStyle/CodeFormatting/CSharpFormat/INDENT_NESTED_FOR_STMT/@EntryValue">True</s:Boolean>
25+
<s:Boolean x:Key="/Default/CodeStyle/CodeFormatting/CSharpFormat/INDENT_NESTED_LOCK_STMT/@EntryValue">True</s:Boolean>
26+
<s:Boolean x:Key="/Default/CodeStyle/CodeFormatting/CSharpFormat/INDENT_NESTED_USINGS_STMT/@EntryValue">True</s:Boolean>
27+
<s:Boolean x:Key="/Default/CodeStyle/CodeFormatting/CSharpFormat/INDENT_NESTED_WHILE_STMT/@EntryValue">True</s:Boolean>
28+
<s:Boolean x:Key="/Default/CodeStyle/CodeFormatting/CSharpFormat/INT_ALIGN_COMMENTS/@EntryValue">False</s:Boolean>
29+
<s:Boolean x:Key="/Default/CodeStyle/CodeFormatting/CSharpFormat/INT_ALIGN_FIELDS/@EntryValue">False</s:Boolean>
30+
<s:Boolean x:Key="/Default/CodeStyle/CodeFormatting/CSharpFormat/INT_ALIGN_FIX_IN_ADJACENT/@EntryValue">False</s:Boolean>
31+
<s:Boolean x:Key="/Default/CodeStyle/CodeFormatting/CSharpFormat/INT_ALIGN_METHODS/@EntryValue">False</s:Boolean>
32+
<s:Boolean x:Key="/Default/CodeStyle/CodeFormatting/CSharpFormat/INT_ALIGN_NESTED_TERNARY/@EntryValue">False</s:Boolean>
33+
<s:Boolean x:Key="/Default/CodeStyle/CodeFormatting/CSharpFormat/INT_ALIGN_PARAMETERS/@EntryValue">False</s:Boolean>
34+
<s:Boolean x:Key="/Default/CodeStyle/CodeFormatting/CSharpFormat/INT_ALIGN_PROPERTIES/@EntryValue">False</s:Boolean>
35+
<s:Boolean x:Key="/Default/CodeStyle/CodeFormatting/CSharpFormat/INT_ALIGN_SWITCH_EXPRESSIONS/@EntryValue">False</s:Boolean>
36+
<s:Boolean x:Key="/Default/CodeStyle/CodeFormatting/CSharpFormat/INT_ALIGN_SWITCH_SECTIONS/@EntryValue">False</s:Boolean>
37+
<s:Boolean x:Key="/Default/CodeStyle/CodeFormatting/CSharpFormat/INT_ALIGN_VARIABLES/@EntryValue">False</s:Boolean>
38+
<s:Boolean x:Key="/Default/CodeStyle/CodeFormatting/CSharpFormat/KEEP_EXISTING_DECLARATION_PARENS_ARRANGEMENT/@EntryValue">False</s:Boolean>
39+
<s:Boolean x:Key="/Default/CodeStyle/CodeFormatting/CSharpFormat/KEEP_EXISTING_INVOCATION_PARENS_ARRANGEMENT/@EntryValue">False</s:Boolean>
40+
<s:Boolean x:Key="/Default/CodeStyle/CodeFormatting/CSharpFormat/LINE_FEED_AT_FILE_END/@EntryValue">True</s:Boolean>
41+
<s:Boolean x:Key="/Default/CodeStyle/CodeFormatting/CSharpFormat/WRAP_AFTER_DECLARATION_LPAR/@EntryValue">True</s:Boolean>
42+
<s:Boolean x:Key="/Default/CodeStyle/CodeFormatting/CSharpFormat/WRAP_AFTER_INVOCATION_LPAR/@EntryValue">True</s:Boolean>
43+
<s:Boolean x:Key="/Default/CodeStyle/CodeFormatting/CSharpFormat/WRAP_BEFORE_EQ/@EntryValue">True</s:Boolean>
44+
<s:Boolean x:Key="/Default/Environment/SettingsMigration/IsMigratorApplied/=JetBrains_002EReSharper_002EPsi_002ECSharp_002ECodeStyle_002ECSharpKeepExistingMigration/@EntryIndexedValue">True</s:Boolean>
45+
<s:Boolean x:Key="/Default/Environment/SettingsMigration/IsMigratorApplied/=JetBrains_002EReSharper_002EPsi_002ECSharp_002ECodeStyle_002ECSharpPlaceEmbeddedOnSameLineMigration/@EntryIndexedValue">True</s:Boolean>
46+
<s:Boolean x:Key="/Default/Environment/SettingsMigration/IsMigratorApplied/=JetBrains_002EReSharper_002EPsi_002ECSharp_002ECodeStyle_002ECSharpUseContinuousIndentInsideBracesMigration/@EntryIndexedValue">True</s:Boolean>
47+
<s:Boolean x:Key="/Default/Environment/SettingsMigration/IsMigratorApplied/=JetBrains_002EReSharper_002EPsi_002ECSharp_002ECodeStyle_002ESettingsUpgrade_002EMigrateBlankLinesAroundFieldToBlankLinesAroundProperty/@EntryIndexedValue">True</s:Boolean>
48+
<s:Boolean x:Key="/Default/UserDictionary/Words/=atislav_0022_002C/@EntryIndexedValue">True</s:Boolean>
349
<s:Boolean x:Key="/Default/UserDictionary/Words/=bratislav/@EntryIndexedValue">True</s:Boolean>
50+
<s:Boolean x:Key="/Default/UserDictionary/Words/=fatals/@EntryIndexedValue">True</s:Boolean>
451
<s:Boolean x:Key="/Default/UserDictionary/Words/=lustige/@EntryIndexedValue">True</s:Boolean>
552
<s:Boolean x:Key="/Default/UserDictionary/Words/=Metulsky/@EntryIndexedValue">True</s:Boolean>
653
<s:Boolean x:Key="/Default/UserDictionary/Words/=Myget/@EntryIndexedValue">True</s:Boolean>
754
<s:Boolean x:Key="/Default/UserDictionary/Words/=nupkg/@EntryIndexedValue">True</s:Boolean>
8-
<s:Boolean x:Key="/Default/UserDictionary/Words/=Sequentializing/@EntryIndexedValue">True</s:Boolean></wpf:ResourceDictionary>
55+
<s:Boolean x:Key="/Default/UserDictionary/Words/=xunit/@EntryIndexedValue">True</s:Boolean>
56+
<s:Int64 x:Key="/Default/CodeStyle/CodeFormatting/CSharpFormat/BLANK_LINES_AROUND_INVOCABLE/@EntryValue">1</s:Int64>
57+
<s:Int64 x:Key="/Default/CodeStyle/CodeFormatting/CSharpFormat/BLANK_LINES_AROUND_SINGLE_LINE_AUTO_PROPERTY/@EntryValue">1</s:Int64>
58+
<s:Int64 x:Key="/Default/CodeStyle/CodeFormatting/CSharpFormat/BLANK_LINES_AROUND_SINGLE_LINE_PROPERTY/@EntryValue">1</s:Int64>
59+
<s:Int64 x:Key="/Default/CodeStyle/CodeFormatting/CSharpFormat/BLANK_LINES_AROUND_SINGLE_LINE_TYPE/@EntryValue">1</s:Int64>
60+
<s:Int64 x:Key="/Default/CodeStyle/CodeFormatting/CSharpFormat/BLANK_LINES_AROUND_TYPE/@EntryValue">2</s:Int64>
61+
<s:Int64 x:Key="/Default/CodeStyle/CodeFormatting/CSharpFormat/KEEP_BLANK_LINES_IN_DECLARATIONS/@EntryValue">1</s:Int64>
62+
<s:Int64 x:Key="/Default/CodeStyle/CodeFormatting/CSharpFormat/MAX_FORMAL_PARAMETERS_ON_LINE/@EntryValue">10000</s:Int64>
63+
<s:Int64 x:Key="/Default/CodeStyle/CodeFormatting/CSharpFormat/WRAP_LIMIT/@EntryValue">120</s:Int64>
64+
<s:String x:Key="/Default/CodeInspection/Highlighting/InspectionSeverities/=ArrangeAttributes/@EntryIndexedValue">HINT</s:String>
65+
<s:String x:Key="/Default/CodeInspection/Highlighting/InspectionSeverities/=ArrangeRedundantParentheses/@EntryIndexedValue">SUGGESTION</s:String>
66+
<s:String x:Key="/Default/CodeInspection/Highlighting/InspectionSeverities/=BadListLineBreaks/@EntryIndexedValue">WARNING</s:String>
67+
<s:String x:Key="/Default/CodeInspection/Highlighting/InspectionSeverities/=BadParensLineBreaks/@EntryIndexedValue">WARNING</s:String>
68+
<s:String x:Key="/Default/CodeInspection/Highlighting/InspectionSeverities/=InconsistentNaming/@EntryIndexedValue">HINT</s:String>
69+
<s:String x:Key="/Default/CodeInspection/Highlighting/InspectionSeverities/=IncorrectBlankLinesNearBraces/@EntryIndexedValue">WARNING</s:String>
70+
<s:String x:Key="/Default/CodeInspection/Highlighting/InspectionSeverities/=MissingBlankLines/@EntryIndexedValue">WARNING</s:String>
71+
<s:String x:Key="/Default/CodeInspection/Highlighting/InspectionSeverities/=MultipleStatementsOnOneLine/@EntryIndexedValue">WARNING</s:String>
72+
<s:String x:Key="/Default/CodeInspection/Highlighting/InspectionSeverities/=RedundantBlankLines/@EntryIndexedValue">WARNING</s:String>
73+
<s:String x:Key="/Default/CodeStyle/CSharpVarKeywordUsage/ForBuiltInTypes/@EntryValue">UseVarWhenEvident</s:String>
74+
<s:String x:Key="/Default/CodeStyle/CSharpVarKeywordUsage/ForOtherTypes/@EntryValue">UseVarWhenEvident</s:String>
75+
<s:String x:Key="/Default/CodeStyle/CodeFormatting/CSharpCodeStyle/BRACES_FOR_FOR/@EntryValue">Required</s:String>
76+
<s:String x:Key="/Default/CodeStyle/CodeFormatting/CSharpCodeStyle/BRACES_FOR_FOREACH/@EntryValue">Required</s:String>
77+
<s:String x:Key="/Default/CodeStyle/CodeFormatting/CSharpCodeStyle/BRACES_FOR_IFELSE/@EntryValue">Required</s:String>
78+
<s:String x:Key="/Default/CodeStyle/CodeFormatting/CSharpCodeStyle/BRACES_FOR_WHILE/@EntryValue">Required</s:String>
79+
<s:String x:Key="/Default/CodeStyle/CodeFormatting/CSharpFormat/EMPTY_BLOCK_STYLE/@EntryValue">TOGETHER</s:String>
80+
<s:String x:Key="/Default/CodeStyle/CodeFormatting/CSharpFormat/PLACE_ACCESSORHOLDER_ATTRIBUTE_ON_SAME_LINE_EX/@EntryValue">NEVER</s:String>
81+
<s:String x:Key="/Default/CodeStyle/CodeFormatting/CSharpFormat/PLACE_FIELD_ATTRIBUTE_ON_SAME_LINE_EX/@EntryValue">NEVER</s:String>
82+
<s:String x:Key="/Default/CodeStyle/CodeFormatting/CSharpFormat/WRAP_ARGUMENTS_STYLE/@EntryValue">CHOP_IF_LONG</s:String>
83+
<s:String x:Key="/Default/CodeStyle/CodeFormatting/CSharpFormat/WRAP_CHAINED_METHOD_CALLS/@EntryValue">CHOP_IF_LONG</s:String>
84+
<s:String x:Key="/Default/CodeStyle/CodeFormatting/CSharpFormat/WRAP_PARAMETERS_STYLE/@EntryValue">CHOP_IF_LONG</s:String>
85+
<s:String x:Key="/Default/CodeStyle/CodeFormatting/CSharpFormat/WRAP_TERNARY_EXPR_STYLE/@EntryValue">CHOP_IF_LONG</s:String>
86+
</wpf:ResourceDictionary>

src/abstractions/Backend.Fx.Tests/BuildingBlocks/TheAggregateRoot.cs

Lines changed: 42 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -11,48 +11,20 @@ public class TheAggregateRoot
1111
{
1212
private static int _nextId;
1313

14-
public class TestAggregateRoot : AggregateRoot
15-
{
16-
public TestAggregateRoot(int id, string name) : base(id)
17-
{
18-
Name = name;
19-
Children.Add(new TestEntity("Child 1", this));
20-
Children.Add(new TestEntity("Child 2", this));
21-
Children.Add(new TestEntity("Child 3", this));
22-
}
23-
24-
[UsedImplicitly] public string Name { get; private set; }
25-
26-
public ISet<TestEntity> Children { get; } = new HashSet<TestEntity>();
27-
}
28-
29-
public class TestEntity : Entity
30-
{
31-
public TestEntity(string name, TestAggregateRoot parent)
32-
{
33-
Name = name;
34-
Parent = parent;
35-
}
36-
37-
[UsedImplicitly] public string Name { get; set; }
38-
39-
[UsedImplicitly] public TestAggregateRoot Parent { get; set; }
40-
}
41-
4214
[Fact]
4315
public void ChangedByPropertyIsChoppedAt100Chars()
4416
{
45-
DateTime now = DateTime.Now;
17+
var now = DateTime.Now;
4618
var sut = new TestAggregateRoot(_nextId++, "gaga");
47-
var moreThanHundred = Letters.RandomLowerCase(110);
19+
string moreThanHundred = Letters.RandomLowerCase(110);
4820
sut.SetModifiedProperties(moreThanHundred, now);
4921
Assert.Equal(moreThanHundred.Substring(0, 99) + "…", sut.ChangedBy);
5022
}
5123

5224
[Fact]
5325
public void ChangedByPropertyIsStoredCorrectly()
5426
{
55-
DateTime now = DateTime.Now;
27+
var now = DateTime.Now;
5628
var sut = new TestAggregateRoot(_nextId++, "gaga");
5729
sut.SetModifiedProperties("me", now);
5830
Assert.Equal("me", sut.ChangedBy);
@@ -62,7 +34,7 @@ public void ChangedByPropertyIsStoredCorrectly()
6234
[Fact]
6335
public void ChangedOnPropertyIsStoredCorrectly()
6436
{
65-
DateTime now = DateTime.Now;
37+
var now = DateTime.Now;
6638
var sut = new TestAggregateRoot(_nextId++, "gaga");
6739
sut.SetModifiedProperties("me", now);
6840
Assert.Equal(now, sut.ChangedOn);
@@ -72,17 +44,17 @@ public void ChangedOnPropertyIsStoredCorrectly()
7244
[Fact]
7345
public void CreatedByPropertyIsChoppedAt100Chars()
7446
{
75-
DateTime now = DateTime.Now;
47+
var now = DateTime.Now;
7648
var sut = new TestAggregateRoot(_nextId++, "gaga");
77-
var moreThanHundred = Letters.RandomLowerCase(110);
49+
string moreThanHundred = Letters.RandomLowerCase(110);
7850
sut.SetCreatedProperties(moreThanHundred, now);
7951
Assert.Equal(moreThanHundred.Substring(0, 99) + "…", sut.CreatedBy);
8052
}
8153

8254
[Fact]
8355
public void CreatedByPropertyIsStoredCorrectly()
8456
{
85-
DateTime now = DateTime.Now;
57+
var now = DateTime.Now;
8658
var sut = new TestAggregateRoot(_nextId++, "gaga");
8759
sut.SetCreatedProperties("me", now);
8860
Assert.Equal("me", sut.CreatedBy);
@@ -92,7 +64,7 @@ public void CreatedByPropertyIsStoredCorrectly()
9264
[Fact]
9365
public void CreatedOnPropertyIsStoredCorrectly()
9466
{
95-
DateTime now = DateTime.Now;
67+
var now = DateTime.Now;
9668
var sut = new TestAggregateRoot(_nextId++, "gaga");
9769
sut.SetCreatedProperties("me", now);
9870
Assert.Equal(now, sut.CreatedOn);
@@ -130,5 +102,38 @@ public void ThrowsGivenNullCreatedBy()
130102
// ReSharper disable once AssignNullToNotNullAttribute
131103
Assert.Throws<ArgumentNullException>(() => sut.SetCreatedProperties(null, DateTime.Now));
132104
}
105+
106+
107+
public class TestAggregateRoot : AggregateRoot
108+
{
109+
public TestAggregateRoot(int id, string name) : base(id)
110+
{
111+
Name = name;
112+
Children.Add(new TestEntity("Child 1", this));
113+
Children.Add(new TestEntity("Child 2", this));
114+
Children.Add(new TestEntity("Child 3", this));
115+
}
116+
117+
[UsedImplicitly]
118+
public string Name { get; private set; }
119+
120+
public ISet<TestEntity> Children { get; } = new HashSet<TestEntity>();
121+
}
122+
123+
124+
public class TestEntity : Entity
125+
{
126+
public TestEntity(string name, TestAggregateRoot parent)
127+
{
128+
Name = name;
129+
Parent = parent;
130+
}
131+
132+
[UsedImplicitly]
133+
public string Name { get; set; }
134+
135+
[UsedImplicitly]
136+
public TestAggregateRoot Parent { get; set; }
137+
}
133138
}
134-
}
139+
}

src/abstractions/Backend.Fx.Tests/BuildingBlocks/TheIdentified.cs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ public TestIdentified(int id)
1010
Id = id;
1111
}
1212
}
13-
13+
14+
1415
public class TheIdentified
1516
{
1617
[Fact]
@@ -20,11 +21,11 @@ public void IsEquatable()
2021
var identified1Clone = new TestIdentified(1);
2122
var identified2 = new TestIdentified(2);
2223
Identified stillNull = null;
23-
24+
2425
Assert.True(identified1.Equals(identified1));
2526
Assert.True(identified1.Equals(identified1Clone));
2627
Assert.False(identified1.Equals(identified2));
2728
Assert.False(identified1.Equals(stillNull));
2829
}
2930
}
30-
}
31+
}

0 commit comments

Comments
 (0)