Browse Source

Files renamed

pull/1/head
Sebastian 9 years ago
parent
commit
91f983aab5
  1. 0
      src/PinkParrot.Core/Squidex.Core.xproj
  2. 0
      src/PinkParrot.Events/Squidex.Events.xproj
  3. 0
      src/PinkParrot.Infrastructure/Squidex.Infrastructure.xproj
  4. 0
      src/PinkParrot.Read/Squidex.Read.xproj
  5. 0
      src/PinkParrot.Store.MongoDb/Squidex.Store.MongoDb.xproj
  6. 0
      src/PinkParrot.Write/Squidex.Write.xproj
  7. 0
      src/PinkParrot/Squidex.xproj
  8. 75
      src/pinkparrot_infrastructure/PinkParrot.Infrastructure.Tests/CQRS/EnvelopeExtensionsTest.cs
  9. 0
      tests/PinkParrot.Infrastructure.Tests/Squidex.Infrastructure.Tests.xproj
  10. 0
      tests/PinkParrot.Write.Tests/Squidex.Write.Tests.xproj

0
src/PinkParrot.Core/PinkParrot.Core.xproj → src/PinkParrot.Core/Squidex.Core.xproj

0
src/PinkParrot.Events/PinkParrot.Events.xproj → src/PinkParrot.Events/Squidex.Events.xproj

0
src/PinkParrot.Infrastructure/PinkParrot.Infrastructure.xproj → src/PinkParrot.Infrastructure/Squidex.Infrastructure.xproj

0
src/PinkParrot.Read/PinkParrot.Read.xproj → src/PinkParrot.Read/Squidex.Read.xproj

0
src/PinkParrot.Store.MongoDb/PinkParrot.Store.MongoDb.xproj → src/PinkParrot.Store.MongoDb/Squidex.Store.MongoDb.xproj

0
src/PinkParrot.Write/PinkParrot.Write.xproj → src/PinkParrot.Write/Squidex.Write.xproj

0
src/PinkParrot/PinkParrot.xproj → src/PinkParrot/Squidex.xproj

75
src/pinkparrot_infrastructure/PinkParrot.Infrastructure.Tests/CQRS/EnvelopeExtensionsTest.cs

@ -1,75 +0,0 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using NodaTime;
using NuGet.Versioning;
using Xunit;
namespace PinkParrot.Infrastructure.CQRS
{
public class EnvelopeExtensionsTest
{
private readonly Envelope<object> envelope = new Envelope<object>(1, new EnvelopeHeaders());
[Fact]
public void Should_set_and_get_timestamp()
{
var timestamp = SystemClock.Instance.GetCurrentInstant();
envelope.SetTimestamp(timestamp);
Assert.Equal(timestamp, envelope.Headers.Timestamp());
}
[Fact]
public void Should_set_and_get_event_id()
{
var eventId = Guid.NewGuid();
envelope.SetEventId(eventId);
Assert.Equal(eventId, envelope.Headers.EventId());
}
[Fact]
public void Should_set_and_get_event_number()
{
const int eventNumber = 123;
envelope.SetEventNumber(eventNumber);
Assert.Equal(eventNumber, envelope.Headers.EventNumber());
}
[Fact]
public void Should_set_and_get_aggregate_id()
{
var aggregateId = Guid.NewGuid();
envelope.SetAggregateId(aggregateId);
Assert.Equal(aggregateId, envelope.Headers.AggregateId());
}
[Fact]
public void Should_set_and_get_tenant_id()
{
var tenantId = Guid.NewGuid();
envelope.SetTenantId(tenantId);
Assert.Equal(tenantId, envelope.Headers.TenantId());
}
[Fact]
public void Should_set_and_get_commit_id()
{
var commitId = Guid.NewGuid();
envelope.SetCommitId(commitId);
Assert.Equal(commitId, envelope.Headers.CommitId());
}
}
}

0
tests/PinkParrot.Infrastructure.Tests/PinkParrot.Infrastructure.Tests.xproj → tests/PinkParrot.Infrastructure.Tests/Squidex.Infrastructure.Tests.xproj

0
tests/PinkParrot.Write.Tests/PinkParrot.Write.Tests.xproj → tests/PinkParrot.Write.Tests/Squidex.Write.Tests.xproj

Loading…
Cancel
Save