mirror of https://github.com/Squidex/squidex.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
1.0 KiB
35 lines
1.0 KiB
// ==========================================================================
|
|
// Squidex Headless CMS
|
|
// ==========================================================================
|
|
// Copyright (c) Squidex UG (haftungsbeschraenkt)
|
|
// All rights reserved. Licensed under the MIT license.
|
|
// ==========================================================================
|
|
|
|
using System.Threading.Tasks;
|
|
using FakeItEasy;
|
|
using Squidex.Domain.Apps.Core.Tags;
|
|
using Xunit;
|
|
|
|
namespace Squidex.Domain.Apps.Entities.Assets
|
|
{
|
|
public class AssetEnricherTests
|
|
{
|
|
private readonly ITagService tagService = A.Fake<ITagService>();
|
|
private readonly AssetEnricher sut;
|
|
|
|
public AssetEnricherTests()
|
|
{
|
|
sut = new AssetEnricher(tagService);
|
|
}
|
|
|
|
[Fact]
|
|
public async Task Should_not_enrich_if_asset_contains_null_tags()
|
|
{
|
|
var source = new AssetEntity();
|
|
|
|
var result = await sut.EnrichAsync(source);
|
|
|
|
Assert.Empty(result.TagNames);
|
|
}
|
|
}
|
|
}
|
|
|