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.
36 lines
1.1 KiB
36 lines
1.1 KiB
// ==========================================================================
|
|
// SchemaEventTests.cs
|
|
// Squidex Headless CMS
|
|
// ==========================================================================
|
|
// Copyright (c) Squidex Group
|
|
// All rights reserved.
|
|
// ==========================================================================
|
|
|
|
using Squidex.Domain.Apps.Events.Schemas.Old;
|
|
using Squidex.Domain.Apps.Write.TestHelpers;
|
|
using Squidex.Infrastructure.CQRS.Events;
|
|
using Xunit;
|
|
|
|
#pragma warning disable CS0612 // Type or member is obsolete
|
|
|
|
namespace Squidex.Domain.Apps.Write.Schemas
|
|
{
|
|
public class SchemaEventTests
|
|
{
|
|
[Fact]
|
|
public void Should_migrate_webhook_added_event_to_noop()
|
|
{
|
|
var source = new WebhookAdded();
|
|
|
|
source.Migrate().ShouldBeSameEventType(new NoopEvent());
|
|
}
|
|
|
|
[Fact]
|
|
public void Should_migrate_webhook_deleted_event_to_noop()
|
|
{
|
|
var source = new WebhookDeleted();
|
|
|
|
source.Migrate().ShouldBeSameEventType(new NoopEvent());
|
|
}
|
|
}
|
|
}
|
|
|