Skip to content

Commit aeb41af

Browse files
author
Christophe Leemans
committed
fix(format): convert tabs to spaces
Fix use spaces instead of tabs.
1 parent 38f4818 commit aeb41af

File tree

14 files changed

+155
-155
lines changed

14 files changed

+155
-155
lines changed

src/JsonApiDotNetCoreExample/Data/AppDbContext.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ public AppDbContext(DbContextOptions<AppDbContext> options)
1414

1515
protected override void OnModelCreating(ModelBuilder modelBuilder)
1616
{
17-
modelBuilder.Entity<TodoItem>()
18-
.Property(t => t.CreatedDate).HasDefaultValueSql("CURRENT_TIMESTAMP").IsRequired();
19-
20-
modelBuilder.Entity<TodoItem>()
17+
modelBuilder.Entity<TodoItem>()
18+
.Property(t => t.CreatedDate).HasDefaultValueSql("CURRENT_TIMESTAMP").IsRequired();
19+
20+
modelBuilder.Entity<TodoItem>()
2121
.HasOne(t => t.Assignee)
2222
.WithMany(p => p.AssignedTodoItems)
2323
.HasForeignKey(t => t.AssigneeId);

src/JsonApiDotNetCoreExample/Models/TodoItem.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@ public TodoItem()
1919
[Attr("guid-property")]
2020
public Guid GuidProperty { get; set; }
2121

22-
[Attr("created-date")]
23-
public DateTime CreatedDate { get; set; }
22+
[Attr("created-date")]
23+
public DateTime CreatedDate { get; set; }
2424

25-
[Attr("achieved-date")]
26-
public DateTime? AchievedDate { get; set; }
25+
[Attr("achieved-date")]
26+
public DateTime? AchievedDate { get; set; }
2727

2828
public int? OwnerId { get; set; }
2929
public int? AssigneeId { get; set; }

test/JsonApiDotNetCoreExampleTests/Acceptance/Spec/AttributeFilterTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public AttributeFilterTests(DocsFixture<Startup, JsonDocWriter> fixture)
3131
_todoItemFaker = new Faker<TodoItem>()
3232
.RuleFor(t => t.Description, f => f.Lorem.Sentence())
3333
.RuleFor(t => t.Ordinal, f => f.Random.Number())
34-
.RuleFor(t => t.CreatedDate, f => f.Date.Past());
34+
.RuleFor(t => t.CreatedDate, f => f.Date.Past());
3535

3636
_personFaker = new Faker<Person>()
3737
.RuleFor(p => p.FirstName, f => f.Name.FirstName())

test/JsonApiDotNetCoreExampleTests/Acceptance/Spec/CreatingDataTests.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public CreatingDataTests(DocsFixture<Startup, JsonDocWriter> fixture)
3636
_todoItemFaker = new Faker<TodoItem>()
3737
.RuleFor(t => t.Description, f => f.Lorem.Sentence())
3838
.RuleFor(t => t.Ordinal, f => f.Random.Number())
39-
.RuleFor(t => t.CreatedDate, f => f.Date.Past());
39+
.RuleFor(t => t.CreatedDate, f => f.Date.Past());
4040
}
4141

4242
[Fact]
@@ -109,7 +109,7 @@ public async Task Cannot_Create_Entity_With_Client_Generate_Id()
109109
{
110110
description = todoItem.Description,
111111
ordinal = todoItem.Ordinal,
112-
createdDate = DateTime.Now
112+
createdDate = DateTime.Now
113113
}
114114
}
115115
};
@@ -148,7 +148,7 @@ public async Task Can_Create_Entity_With_Client_Defined_Id_If_Configured()
148148
{
149149
description = todoItem.Description,
150150
ordinal = todoItem.Ordinal,
151-
createdDate = DateTime.Now
151+
createdDate = DateTime.Now
152152
}
153153
}
154154
};
@@ -306,7 +306,7 @@ public async Task ShouldReceiveLocationHeader_InResponse()
306306
{
307307
description = todoItem.Description,
308308
ordinal = todoItem.Ordinal,
309-
createdDate = DateTime.Now
309+
createdDate = DateTime.Now
310310
}
311311
}
312312
};
@@ -344,7 +344,7 @@ public async Task Respond_409_ToIncorrectEntityType()
344344
{
345345
description = todoItem.Description,
346346
ordinal = todoItem.Ordinal,
347-
createdDate = DateTime.Now
347+
createdDate = DateTime.Now
348348
}
349349
}
350350
};

test/JsonApiDotNetCoreExampleTests/Acceptance/Spec/DeletingDataTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public DeletingDataTests(DocsFixture<Startup, JsonDocWriter> fixture)
2828
_todoItemFaker = new Faker<TodoItem>()
2929
.RuleFor(t => t.Description, f => f.Lorem.Sentence())
3030
.RuleFor(t => t.Ordinal, f => f.Random.Number())
31-
.RuleFor(t => t.CreatedDate, f => f.Date.Past());
31+
.RuleFor(t => t.CreatedDate, f => f.Date.Past());
3232
}
3333

3434
[Fact]

test/JsonApiDotNetCoreExampleTests/Acceptance/Spec/DocumentTests/Included.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public Included(DocsFixture<Startup, JsonDocWriter> fixture)
3737
_todoItemFaker = new Faker<TodoItem>()
3838
.RuleFor(t => t.Description, f => f.Lorem.Sentence())
3939
.RuleFor(t => t.Ordinal, f => f.Random.Number())
40-
.RuleFor(t => t.CreatedDate, f => f.Date.Past());
40+
.RuleFor(t => t.CreatedDate, f => f.Date.Past());
4141

4242
_todoItemCollectionFaker = new Faker<TodoItemCollection>()
4343
.RuleFor(t => t.Name, f => f.Company.CatchPhrase());

test/JsonApiDotNetCoreExampleTests/Acceptance/Spec/DocumentTests/PagingTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public PagingTests(DocsFixture<Startup, JsonDocWriter> fixture)
3737
_todoItemFaker = new Faker<TodoItem>()
3838
.RuleFor(t => t.Description, f => f.Lorem.Sentence())
3939
.RuleFor(t => t.Ordinal, f => f.Random.Number())
40-
.RuleFor(t => t.CreatedDate, f => f.Date.Past());
40+
.RuleFor(t => t.CreatedDate, f => f.Date.Past());
4141

4242
_todoItemCollectionFaker = new Faker<TodoItemCollection>()
4343
.RuleFor(t => t.Name, f => f.Company.CatchPhrase());

test/JsonApiDotNetCoreExampleTests/Acceptance/Spec/DocumentTests/Relationships.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public Relationships(DocsFixture<Startup, JsonDocWriter> fixture)
3030
_todoItemFaker = new Faker<TodoItem>()
3131
.RuleFor(t => t.Description, f => f.Lorem.Sentence())
3232
.RuleFor(t => t.Ordinal, f => f.Random.Number())
33-
.RuleFor(t => t.CreatedDate, f => f.Date.Past());
33+
.RuleFor(t => t.CreatedDate, f => f.Date.Past());
3434
}
3535

3636
[Fact]

test/JsonApiDotNetCoreExampleTests/Acceptance/Spec/FetchingDataTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public FetchingDataTests(DocsFixture<Startup, JsonDocWriter> fixture)
3434
_todoItemFaker = new Faker<TodoItem>()
3535
.RuleFor(t => t.Description, f => f.Lorem.Sentence())
3636
.RuleFor(t => t.Ordinal, f => f.Random.Number())
37-
.RuleFor(t => t.CreatedDate, f => f.Date.Past());
37+
.RuleFor(t => t.CreatedDate, f => f.Date.Past());
3838
_personFaker = new Faker<Person>()
3939
.RuleFor(p => p.FirstName, f => f.Name.FirstName())
4040
.RuleFor(p => p.LastName, f => f.Name.LastName());

test/JsonApiDotNetCoreExampleTests/Acceptance/Spec/FetchingRelationshipsTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public FetchingRelationshipsTests(DocsFixture<Startup, JsonDocWriter> fixture)
2828
_todoItemFaker = new Faker<TodoItem>()
2929
.RuleFor(t => t.Description, f => f.Lorem.Sentence())
3030
.RuleFor(t => t.Ordinal, f => f.Random.Number())
31-
.RuleFor(t => t.CreatedDate, f => f.Date.Past());
31+
.RuleFor(t => t.CreatedDate, f => f.Date.Past());
3232
}
3333

3434
[Fact]

test/JsonApiDotNetCoreExampleTests/Acceptance/Spec/SparseFieldSetTests.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ public async Task Can_Select_Sparse_Fieldsets()
3737
var todoItem = new TodoItem {
3838
Description = "description",
3939
Ordinal = 1,
40-
CreatedDate = System.DateTime.Now,
41-
AchievedDate = System.DateTime.Now.AddDays(2)
40+
CreatedDate = System.DateTime.Now,
41+
AchievedDate = System.DateTime.Now.AddDays(2)
4242
};
4343
_dbContext.TodoItems.Add(todoItem);
4444
await _dbContext.SaveChangesAsync();
@@ -58,8 +58,8 @@ public async Task Can_Select_Sparse_Fieldsets()
5858
// assert
5959
Assert.Equal(0, result.Ordinal);
6060
Assert.Equal(todoItem.Description, result.Description);
61-
Assert.Equal(todoItem.CreatedDate.ToString("G"), result.CreatedDate.ToString("G"));
62-
Assert.Equal(todoItem.AchievedDate.GetValueOrDefault().ToString("G"), result.AchievedDate.GetValueOrDefault().ToString("G"));
61+
Assert.Equal(todoItem.CreatedDate.ToString("G"), result.CreatedDate.ToString("G"));
62+
Assert.Equal(todoItem.AchievedDate.GetValueOrDefault().ToString("G"), result.AchievedDate.GetValueOrDefault().ToString("G"));
6363
Assert.Equal(expectedSql, resultSql);
6464
}
6565

@@ -70,7 +70,7 @@ public async Task Fields_Query_Selects_Sparse_Field_Sets()
7070
var todoItem = new TodoItem {
7171
Description = "description",
7272
Ordinal = 1,
73-
CreatedDate = System.DateTime.Now
73+
CreatedDate = System.DateTime.Now
7474
};
7575
_dbContext.TodoItems.Add(todoItem);
7676
await _dbContext.SaveChangesAsync();
@@ -93,7 +93,7 @@ public async Task Fields_Query_Selects_Sparse_Field_Sets()
9393
Assert.Equal(todoItem.StringId, deserializeBody.Data.Id);
9494
Assert.Equal(2, deserializeBody.Data.Attributes.Count);
9595
Assert.Equal(todoItem.Description, deserializeBody.Data.Attributes["description"]);
96-
Assert.Equal(todoItem.CreatedDate, deserializeBody.Data.Attributes["created-date"]);
96+
Assert.Equal(todoItem.CreatedDate, deserializeBody.Data.Attributes["created-date"]);
9797
}
9898
}
9999
}

test/JsonApiDotNetCoreExampleTests/Acceptance/Spec/UpdatingDataTests.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using System;
1+
using System;
22
using System.Linq;
33
using System.Net;
44
using System.Net.Http;
@@ -34,7 +34,7 @@ public UpdatingDataTests(DocsFixture<Startup, JsonDocWriter> fixture)
3434
_todoItemFaker = new Faker<TodoItem>()
3535
.RuleFor(t => t.Description, f => f.Lorem.Sentence())
3636
.RuleFor(t => t.Ordinal, f => f.Random.Number())
37-
.RuleFor(t => t.CreatedDate, f => f.Date.Past());
37+
.RuleFor(t => t.CreatedDate, f => f.Date.Past());
3838
_personFaker = new Faker<Person>()
3939
.RuleFor(p => p.FirstName, f => f.Name.FirstName())
4040
.RuleFor(p => p.LastName, f => f.Name.LastName());
@@ -61,7 +61,7 @@ public async Task Respond_404_If_EntityDoesNotExist()
6161
{
6262
description = todoItem.Description,
6363
ordinal = todoItem.Ordinal,
64-
createdDate = DateTime.Now
64+
createdDate = DateTime.Now
6565
}
6666
}
6767
};
@@ -104,7 +104,7 @@ public async Task Can_Patch_Entity_And_HasOne_Relationships()
104104
{
105105
description = todoItem.Description,
106106
ordinal = todoItem.Ordinal,
107-
createdDate = DateTime.Now
107+
createdDate = DateTime.Now
108108
},
109109
relationships = new
110110
{

test/JsonApiDotNetCoreExampleTests/Acceptance/Spec/UpdatingRelationshipsTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public UpdatingRelationshipsTests(DocsFixture<Startup, JsonDocWriter> fixture)
4040
_todoItemFaker = new Faker<TodoItem>()
4141
.RuleFor(t => t.Description, f => f.Lorem.Sentence())
4242
.RuleFor(t => t.Ordinal, f => f.Random.Number())
43-
.RuleFor(t => t.CreatedDate, f => f.Date.Past());
43+
.RuleFor(t => t.CreatedDate, f => f.Date.Past());
4444
}
4545

4646
[Fact]

0 commit comments

Comments
 (0)