-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes issue with recursive constructor stack interfering with multi g…
…eneration via AutoFaker<T> #158
- Loading branch information
Showing
10 changed files
with
68 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletions
5
test/Soenneker.Utils.AutoBogus.Tests/Dtos/Complex/Abstract/ISoftDeleted.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
namespace Soenneker.Utils.AutoBogus.Tests.Dtos.Complex.Abstract; | ||
|
||
public interface ISoftDeleted | ||
{ | ||
} |
21 changes: 21 additions & 0 deletions
21
test/Soenneker.Utils.AutoBogus.Tests/Dtos/Complex/Budget.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
using System.Collections.Generic; | ||
using Soenneker.Utils.AutoBogus.Tests.Dtos.Complex.Abstract; | ||
|
||
namespace Soenneker.Utils.AutoBogus.Tests.Dtos.Complex; | ||
|
||
public partial class Budget : ISoftDeleted | ||
{ | ||
public int Id { get; set; } | ||
|
||
public string Name { get; set; } | ||
|
||
public bool IsActive { get; set; } | ||
|
||
public bool IsDeleted { get; set; } | ||
|
||
public ICollection<BudgetEntry> BudgetEntries { get; set; } | ||
public Budget() | ||
{ | ||
BudgetEntries = new HashSet<BudgetEntry>(); | ||
} | ||
} |
21 changes: 21 additions & 0 deletions
21
test/Soenneker.Utils.AutoBogus.Tests/Dtos/Complex/BudgetEntry.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
using System; | ||
using Bogus.DataSets; | ||
|
||
namespace Soenneker.Utils.AutoBogus.Tests.Dtos.Complex; | ||
|
||
public partial class BudgetEntry | ||
{ | ||
public int Id { get; set; } | ||
|
||
public int CurrencyId { get; set; } | ||
|
||
public decimal Amount { get; set; } | ||
|
||
public DateTime Date { get; set; } | ||
|
||
public int BudgetId { get; set; } | ||
|
||
public virtual Budget Budget { get; set; } | ||
|
||
public virtual Currency Currency { get; set; } | ||
} |
1 change: 0 additions & 1 deletion
1
test/Soenneker.Utils.AutoBogus.Tests/Dtos/Complex/CustomOrder.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters