Removed some properties unnecessarily set in tests as they will be set by default by the builder.

This commit is contained in:
Andy Butland
2020-04-05 09:31:56 +02:00
parent d9f9a166a6
commit 09b18c0227
3 changed files with 0 additions and 15 deletions
@@ -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")