Removed some properties unnecessarily set in tests as they will be set by default by the builder.
This commit is contained in:
@@ -58,11 +58,8 @@ namespace Umbraco.Tests.UnitTests.Umbraco.Infrastructure.Models
|
||||
{
|
||||
return _builder
|
||||
.WithId(77)
|
||||
.WithCreateDate(DateTime.Now)
|
||||
.WithName("Group1")
|
||||
.WithSortOrder(555)
|
||||
.WithKey(Guid.NewGuid())
|
||||
.WithUpdateDate(DateTime.Now)
|
||||
.AddPropertyType()
|
||||
.WithId(3)
|
||||
.WithPropertyEditorAlias("TestPropertyEditor")
|
||||
@@ -71,10 +68,7 @@ namespace Umbraco.Tests.UnitTests.Umbraco.Infrastructure.Models
|
||||
.WithName("Test")
|
||||
.WithSortOrder(9)
|
||||
.WithDataTypeId(5)
|
||||
.WithCreateDate(DateTime.Now)
|
||||
.WithUpdateDate(DateTime.Now)
|
||||
.WithDescription("testing")
|
||||
.WithKey(Guid.NewGuid())
|
||||
.WithPropertyGroupId(11)
|
||||
.WithMandatory(true)
|
||||
.WithValidationRegExp("xxxx")
|
||||
@@ -87,10 +81,7 @@ namespace Umbraco.Tests.UnitTests.Umbraco.Infrastructure.Models
|
||||
.WithName("Test2")
|
||||
.WithSortOrder(10)
|
||||
.WithDataTypeId(6)
|
||||
.WithCreateDate(DateTime.Now)
|
||||
.WithUpdateDate(DateTime.Now)
|
||||
.WithDescription("testing2")
|
||||
.WithKey(Guid.NewGuid())
|
||||
.WithPropertyGroupId(12)
|
||||
.WithMandatory(true)
|
||||
.WithValidationRegExp("yyyy")
|
||||
|
||||
@@ -53,10 +53,7 @@ namespace Umbraco.Tests.UnitTests.Umbraco.Infrastructure.Models
|
||||
.WithName("Test")
|
||||
.WithSortOrder(9)
|
||||
.WithDataTypeId(5)
|
||||
.WithCreateDate(DateTime.Now)
|
||||
.WithUpdateDate(DateTime.Now)
|
||||
.WithDescription("testing")
|
||||
.WithKey(Guid.NewGuid())
|
||||
.WithPropertyGroupId(11)
|
||||
.WithMandatory(true)
|
||||
.WithValidationRegExp("xxxx")
|
||||
|
||||
@@ -74,10 +74,7 @@ namespace Umbraco.Tests.UnitTests.Umbraco.Infrastructure.Models
|
||||
.WithName("Test")
|
||||
.WithSortOrder(9)
|
||||
.WithDataTypeId(5)
|
||||
.WithCreateDate(DateTime.Now)
|
||||
.WithUpdateDate(DateTime.Now)
|
||||
.WithDescription("testing")
|
||||
.WithKey(Guid.NewGuid())
|
||||
.WithPropertyGroupId(11)
|
||||
.WithMandatory(true)
|
||||
.WithValidationRegExp("xxxx")
|
||||
|
||||
Reference in New Issue
Block a user