Skip to content

Commit 750805c

Browse files
committed
Updated tests
1 parent d6a4581 commit 750805c

File tree

137 files changed

+182
-138
lines changed

Some content is hidden

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

137 files changed

+182
-138
lines changed

Tests/AdvancedMapping.Repositories.Mapperly.Tests/modules.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
<module moduleId="Intent.Common.UnitOfWork" version="1.0.2" supportedClientVersions="[4.4.0-a,5.0.0)" />
3131
<module moduleId="Intent.Entities" version="5.1.14" supportedClientVersions="[4.3.3, 5.0.0-a)" />
3232
<module moduleId="Intent.Entities.Repositories.Api" version="5.1.9" supportedClientVersions="[4.4.0-a, 5.0.0-a)" />
33-
<module moduleId="Intent.EntityFrameworkCore" version="5.0.32-pre.1" supportedClientVersions="[4.5.0-a, 5.0.0-a)" />
33+
<module moduleId="Intent.EntityFrameworkCore" version="5.0.32-pre.2" supportedClientVersions="[4.5.0-a, 5.0.0-a)" />
3434
<module moduleId="Intent.EntityFrameworkCore.Repositories" version="4.7.16" supportedClientVersions="[4.5.15-a,5.0.0)" />
3535
<module moduleId="Intent.Infrastructure.DependencyInjection" version="4.1.12-pre.0" supportedClientVersions="[4.5.15-a, 5.0.0-a)" />
3636
<module moduleId="Intent.Metadata.RDBMS" version="3.7.8-pre.0" supportedClientVersions="[4.5.0-a, 5.0.0-a)" />

Tests/AdvancedMappingCrud.DbContext.ProjectTo.Tests/AdvancedMappingCrud.DbContext.ProjectTo.Tests.application.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@
244244
</setting>
245245
<setting id="49b09c68-e86a-4e15-96ab-cd482168ef22" title="Table naming convention" module="Intent.EntityFrameworkCore" type="select">
246246
<hint>Naming convention for SQL table names.</hint>
247-
<value>pluralized</value>
247+
<value>none</value>
248248
<isRequired>false</isRequired>
249249
<options>
250250
<option value="pluralized" description="Pluralized" />

Tests/AdvancedMappingCrud.DbContext.ProjectTo.Tests/modules.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
<module moduleId="Intent.Common.UnitOfWork" version="1.0.2" supportedClientVersions="[4.4.0-a,5.0.0)" />
3535
<module moduleId="Intent.DomainEvents" version="5.0.10" supportedClientVersions="[4.4.0-a, 5.0.0-a)" />
3636
<module moduleId="Intent.Entities" version="5.1.14" supportedClientVersions="[4.3.3, 5.0.0-a)" />
37-
<module moduleId="Intent.EntityFrameworkCore" version="5.0.32-pre.1" supportedClientVersions="[4.5.0-a, 5.0.0-a)" />
37+
<module moduleId="Intent.EntityFrameworkCore" version="5.0.32-pre.2" supportedClientVersions="[4.5.0-a, 5.0.0-a)" />
3838
<module moduleId="Intent.EntityFrameworkCore.Interop.DomainEvents" version="4.1.4" supportedClientVersions="[4.1.0-pre.0, 5.0.0-a)" />
3939
<module moduleId="Intent.Infrastructure.DependencyInjection" version="4.1.12-pre.0" supportedClientVersions="[4.5.15-a, 5.0.0-a)" />
4040
<module moduleId="Intent.MediatR.DomainEvents" version="5.2.4" supportedClientVersions="[4.5.15-a, 5.0.0-a)" />

Tests/AdvancedMappingCrud.DbContext.Tests/modules.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
<module moduleId="Intent.Common.UnitOfWork" version="1.0.2" supportedClientVersions="[4.4.0-a,5.0.0)" />
3535
<module moduleId="Intent.DomainEvents" version="5.0.10" supportedClientVersions="[4.4.0-a, 5.0.0-a)" />
3636
<module moduleId="Intent.Entities" version="5.1.14" supportedClientVersions="[4.3.3, 5.0.0-a)" />
37-
<module moduleId="Intent.EntityFrameworkCore" version="5.0.32-pre.1" supportedClientVersions="[4.5.0-a, 5.0.0-a)" />
37+
<module moduleId="Intent.EntityFrameworkCore" version="5.0.32-pre.2" supportedClientVersions="[4.5.0-a, 5.0.0-a)" />
3838
<module moduleId="Intent.EntityFrameworkCore.Interop.DomainEvents" version="4.1.4" supportedClientVersions="[4.1.0-pre.0, 5.0.0-a)" />
3939
<module moduleId="Intent.Infrastructure.DependencyInjection" version="4.1.12-pre.0" supportedClientVersions="[4.5.15-a, 5.0.0-a)" />
4040
<module moduleId="Intent.MediatR.DomainEvents" version="5.2.4" supportedClientVersions="[4.5.15-a, 5.0.0-a)" />

Tests/AdvancedMappingCrud.Repositories.ProjectTo.Tests/modules.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
<module moduleId="Intent.DomainEvents" version="5.0.10" supportedClientVersions="[4.4.0-a, 5.0.0-a)" />
3434
<module moduleId="Intent.Entities" version="5.1.14" supportedClientVersions="[4.3.3, 5.0.0-a)" />
3535
<module moduleId="Intent.Entities.Repositories.Api" version="5.1.9" supportedClientVersions="[4.4.0-a, 5.0.0-a)" />
36-
<module moduleId="Intent.EntityFrameworkCore" version="5.0.32-pre.1" supportedClientVersions="[4.5.0-a, 5.0.0-a)" />
36+
<module moduleId="Intent.EntityFrameworkCore" version="5.0.32-pre.2" supportedClientVersions="[4.5.0-a, 5.0.0-a)" />
3737
<module moduleId="Intent.EntityFrameworkCore.Interop.DomainEvents" version="4.1.4" supportedClientVersions="[4.1.0-pre.0, 5.0.0-a)" />
3838
<module moduleId="Intent.EntityFrameworkCore.Repositories" version="4.7.16" supportedClientVersions="[4.5.15-a,5.0.0)" />
3939
<module moduleId="Intent.Infrastructure.DependencyInjection" version="4.1.12-pre.0" supportedClientVersions="[4.5.15-a, 5.0.0-a)" />

Tests/AdvancedMappingCrud.Repositories.Tests/modules.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
<module moduleId="Intent.DomainServices" version="1.1.12" supportedClientVersions="[4.3.0-a, 5.0.0-a)" />
4343
<module moduleId="Intent.Entities" version="5.1.14" supportedClientVersions="[4.3.3, 5.0.0-a)" />
4444
<module moduleId="Intent.Entities.Repositories.Api" version="5.1.9" supportedClientVersions="[4.4.0-a, 5.0.0-a)" />
45-
<module moduleId="Intent.EntityFrameworkCore" version="5.0.32-pre.1" supportedClientVersions="[4.5.0-a, 5.0.0-a)" />
45+
<module moduleId="Intent.EntityFrameworkCore" version="5.0.32-pre.2" supportedClientVersions="[4.5.0-a, 5.0.0-a)" />
4646
<module moduleId="Intent.EntityFrameworkCore.Interop.DomainEvents" version="4.1.4" supportedClientVersions="[4.1.0-pre.0, 5.0.0-a)" />
4747
<module moduleId="Intent.EntityFrameworkCore.Repositories" version="4.7.16" supportedClientVersions="[4.5.15-a,5.0.0)" />
4848
<module moduleId="Intent.Eventing.Contracts" version="6.0.0" supportedClientVersions="[4.5.0-a, 5.0.0-a)" />

Tests/AdvancedMappingCrud.RichDomain.SeparatedEntityState.Tests/modules.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
<module moduleId="Intent.DomainServices" version="1.1.12" supportedClientVersions="[4.3.0-a, 5.0.0-a)" />
3535
<module moduleId="Intent.Entities" version="5.1.14" supportedClientVersions="[4.3.3, 5.0.0-a)" />
3636
<module moduleId="Intent.Entities.Repositories.Api" version="5.1.9" supportedClientVersions="[4.4.0-a, 5.0.0-a)" />
37-
<module moduleId="Intent.EntityFrameworkCore" version="5.0.32-pre.1" supportedClientVersions="[4.5.0-a, 5.0.0-a)" />
37+
<module moduleId="Intent.EntityFrameworkCore" version="5.0.32-pre.2" supportedClientVersions="[4.5.0-a, 5.0.0-a)" />
3838
<module moduleId="Intent.EntityFrameworkCore.Interop.DomainEvents" version="4.1.4" supportedClientVersions="[4.1.0-pre.0, 5.0.0-a)" />
3939
<module moduleId="Intent.EntityFrameworkCore.Repositories" version="4.7.16" supportedClientVersions="[4.5.15-a,5.0.0)" />
4040
<module moduleId="Intent.Infrastructure.DependencyInjection" version="4.1.12-pre.0" supportedClientVersions="[4.5.15-a, 5.0.0-a)" />

Tests/AdvancedMappingCrud.RichDomain.ServiceModel.Tests/AdvancedMappingCrud.RichDomain.ServiceModel.Tests.Infrastructure/Persistence/ApplicationDbContext.cs

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -23,21 +23,21 @@ public ApplicationDbContext(DbContextOptions<ApplicationDbContext> options, IDom
2323
_domainEventService = domainEventService;
2424
}
2525

26-
public DbSet<Category> Categories { get; set; }
27-
public DbSet<ChildParentExcluded> ChildParentExcludeds { get; set; }
28-
public DbSet<ChildSimple> ChildSimples { get; set; }
29-
public DbSet<Company> Companies { get; set; }
30-
public DbSet<CustomConstructor> CustomConstructors { get; set; }
31-
public DbSet<Customer> Customers { get; set; }
32-
public DbSet<FamilyComplex> FamilyComplexes { get; set; }
33-
public DbSet<FamilyComplexSkipped> FamilyComplexSkippeds { get; set; }
34-
public DbSet<FamilySimple> FamilySimples { get; set; }
35-
public DbSet<Order> Orders { get; set; }
36-
public DbSet<Person> People { get; set; }
37-
public DbSet<Product> Products { get; set; }
38-
public DbSet<Stock> Stocks { get; set; }
39-
public DbSet<Super> Supers { get; set; }
40-
public DbSet<User> Users { get; set; }
26+
public DbSet<Category> Category { get; set; }
27+
public DbSet<ChildParentExcluded> ChildParentExcluded { get; set; }
28+
public DbSet<ChildSimple> ChildSimple { get; set; }
29+
public DbSet<Company> Company { get; set; }
30+
public DbSet<CustomConstructor> CustomConstructor { get; set; }
31+
public DbSet<Customer> Customer { get; set; }
32+
public DbSet<FamilyComplex> FamilyComplex { get; set; }
33+
public DbSet<FamilyComplexSkipped> FamilyComplexSkipped { get; set; }
34+
public DbSet<FamilySimple> FamilySimple { get; set; }
35+
public DbSet<Order> Order { get; set; }
36+
public DbSet<Person> Person { get; set; }
37+
public DbSet<Product> Product { get; set; }
38+
public DbSet<Stock> Stock { get; set; }
39+
public DbSet<Super> Super { get; set; }
40+
public DbSet<User> User { get; set; }
4141

4242
public override async Task<int> SaveChangesAsync(
4343
bool acceptAllChangesOnSuccess,

Tests/AdvancedMappingCrud.RichDomain.ServiceModel.Tests/AdvancedMappingCrud.RichDomain.ServiceModel.Tests.Infrastructure/Persistence/Configurations/CategoryConfiguration.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ public class CategoryConfiguration : IEntityTypeConfiguration<Category>
1212
{
1313
public void Configure(EntityTypeBuilder<Category> builder)
1414
{
15+
builder.ToTable("Categories");
16+
1517
builder.HasKey(x => x.Id);
1618

1719
builder.Property(x => x.Name)

Tests/AdvancedMappingCrud.RichDomain.ServiceModel.Tests/AdvancedMappingCrud.RichDomain.ServiceModel.Tests.Infrastructure/Persistence/Configurations/ChildParentExcludedConfiguration.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ public class ChildParentExcludedConfiguration : IEntityTypeConfiguration<ChildPa
1212
{
1313
public void Configure(EntityTypeBuilder<ChildParentExcluded> builder)
1414
{
15+
builder.ToTable("ChildParentExcludeds");
16+
1517
builder.HasKey(x => x.Id);
1618

1719
builder.Property(x => x.ChildName)

0 commit comments

Comments
 (0)