Updating namespaces

This commit is contained in:
elitsa
2020-01-09 16:37:24 +01:00
parent 728799b036
commit 76ed4ccc6c
8 changed files with 22 additions and 3 deletions

View File

@@ -1,4 +1,5 @@
using Umbraco.Core.Models;
using Umbraco.Tests.Shared.Builders.Markers;
namespace Umbraco.Tests.Shared.Builders
{

View File

@@ -2,6 +2,7 @@ using System;
using System.Collections.Generic;
using System.Linq;
using Umbraco.Core.Models;
using Umbraco.Tests.Shared.Builders.Markers;
namespace Umbraco.Tests.Shared.Builders
{

View File

@@ -1,5 +1,6 @@
using System;
using Umbraco.Core.Models;
using Umbraco.Tests.Shared.Builders.Markers;
namespace Umbraco.Tests.Shared.Builders
{

View File

@@ -1,4 +1,5 @@
using System;
using Umbraco.Tests.Shared.Builders.Markers;
namespace Umbraco.Tests.Shared.Builders.Extensions
{
@@ -24,5 +25,19 @@ namespace Umbraco.Tests.Shared.Builders.Extensions
builder.UpdateDate = updateDate;
return builder;
}
public static T WithAlias<T>(this T builder, string alias)
where T : IWithAliasBuilder
{
builder.Alias = alias;
return builder;
}
public static T WithName<T>(this T builder, string name)
where T : IWithNameBuilder
{
builder.Name = name;
return builder;
}
}
}

View File

@@ -2,6 +2,7 @@ using System.Globalization;
using Moq;
using Umbraco.Core.Configuration;
using Umbraco.Core.Models;
using Umbraco.Tests.Shared.Builders.Markers;
namespace Umbraco.Tests.Shared.Builders
{

View File

@@ -1,6 +1,6 @@
using System;
namespace Umbraco.Tests.Shared.Builders
namespace Umbraco.Tests.Shared.Builders.Markers
{
public interface IWithCreateDateBuilder
{

View File

@@ -1,4 +1,4 @@
namespace Umbraco.Tests.Shared.Builders
namespace Umbraco.Tests.Shared.Builders.Markers
{
public interface IWithIdBuilder
{

View File

@@ -1,6 +1,6 @@
using System;
namespace Umbraco.Tests.Shared.Builders
namespace Umbraco.Tests.Shared.Builders.Markers
{
public interface IWithUpdateDateBuilder
{