Browse Source

Test

pull/556/head
Sebastian 5 years ago
parent
commit
6888e3d96e
  1. 3
      backend/tests/Squidex.Domain.Apps.Entities.Tests/Comments/Guards/GuardCommentsTests.cs
  2. 3
      backend/tests/Squidex.Domain.Apps.Entities.Tests/Contents/Guard/GuardContentTests.cs

3
backend/tests/Squidex.Domain.Apps.Entities.Tests/Comments/Guards/GuardCommentsTests.cs

@ -7,6 +7,7 @@
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using Squidex.Domain.Apps.Core.TestHelpers;
using Squidex.Domain.Apps.Entities.Comments.Commands; using Squidex.Domain.Apps.Entities.Comments.Commands;
using Squidex.Domain.Apps.Entities.TestHelpers; using Squidex.Domain.Apps.Entities.TestHelpers;
using Squidex.Domain.Apps.Events.Comments; using Squidex.Domain.Apps.Events.Comments;
@ -17,7 +18,7 @@ using Xunit;
namespace Squidex.Domain.Apps.Entities.Comments.Guards namespace Squidex.Domain.Apps.Entities.Comments.Guards
{ {
public class GuardCommentsTests public class GuardCommentsTests : IClassFixture<TranslationsFixture>
{ {
private readonly string commentsId = Guid.NewGuid().ToString(); private readonly string commentsId = Guid.NewGuid().ToString();
private readonly RefToken user1 = new RefToken(RefTokenType.Subject, "1"); private readonly RefToken user1 = new RefToken(RefTokenType.Subject, "1");

3
backend/tests/Squidex.Domain.Apps.Entities.Tests/Contents/Guard/GuardContentTests.cs

@ -12,6 +12,7 @@ using FakeItEasy;
using NodaTime; using NodaTime;
using Squidex.Domain.Apps.Core.Contents; using Squidex.Domain.Apps.Core.Contents;
using Squidex.Domain.Apps.Core.Schemas; using Squidex.Domain.Apps.Core.Schemas;
using Squidex.Domain.Apps.Core.TestHelpers;
using Squidex.Domain.Apps.Entities.Contents.Commands; using Squidex.Domain.Apps.Entities.Contents.Commands;
using Squidex.Domain.Apps.Entities.Contents.Guards; using Squidex.Domain.Apps.Entities.Contents.Guards;
using Squidex.Domain.Apps.Entities.Contents.State; using Squidex.Domain.Apps.Entities.Contents.State;
@ -23,7 +24,7 @@ using Xunit;
namespace Squidex.Domain.Apps.Entities.Contents.Guard namespace Squidex.Domain.Apps.Entities.Contents.Guard
{ {
public class GuardContentTests public class GuardContentTests : IClassFixture<TranslationsFixture>
{ {
private readonly IContentWorkflow contentWorkflow = A.Fake<IContentWorkflow>(); private readonly IContentWorkflow contentWorkflow = A.Fake<IContentWorkflow>();
private readonly NamedId<Guid> appId = NamedId.Of(Guid.NewGuid(), "my-app"); private readonly NamedId<Guid> appId = NamedId.Of(Guid.NewGuid(), "my-app");

Loading…
Cancel
Save