diff --git a/tests/Squidex.Infrastructure.Tests/Commands/AggregateHandlerTests.cs b/tests/Squidex.Infrastructure.Tests/Commands/AggregateHandlerTests.cs index 946cbf283..bc61b97b7 100644 --- a/tests/Squidex.Infrastructure.Tests/Commands/AggregateHandlerTests.cs +++ b/tests/Squidex.Infrastructure.Tests/Commands/AggregateHandlerTests.cs @@ -117,7 +117,7 @@ namespace Squidex.Infrastructure.Commands passedDomainObject = x; }); - Assert.Equal(1, domainObject.Snapshot.Version); + Assert.Equal(2, domainObject.Snapshot.Version); Assert.Equal(domainObject, passedDomainObject); Assert.NotNull(context.Result>()); @@ -138,7 +138,7 @@ namespace Squidex.Infrastructure.Commands passedDomainObject = x; }); - Assert.Equal(1, domainObject.Snapshot.Version); + Assert.Equal(2, domainObject.Snapshot.Version); Assert.Equal(domainObject, passedDomainObject); Assert.NotNull(context.Result>()); @@ -159,7 +159,7 @@ namespace Squidex.Infrastructure.Commands passedDomainObject = x; }); - Assert.Equal(1, domainObject.Snapshot.Version); + Assert.Equal(2, domainObject.Snapshot.Version); Assert.Equal(domainObject, passedDomainObject); Assert.NotNull(context.Result>()); @@ -210,7 +210,7 @@ namespace Squidex.Infrastructure.Commands passedDomainObject = x; }); - Assert.Equal(1, domainObject.Snapshot.Version); + Assert.Equal(2, domainObject.Snapshot.Version); Assert.Equal(domainObject, passedDomainObject); Assert.NotNull(context.Result()); @@ -233,7 +233,7 @@ namespace Squidex.Infrastructure.Commands passedDomainObject = x; }); - Assert.Equal(1, domainObject.Snapshot.Version); + Assert.Equal(2, domainObject.Snapshot.Version); Assert.Equal(domainObject, passedDomainObject); Assert.NotNull(context.Result()); @@ -254,7 +254,7 @@ namespace Squidex.Infrastructure.Commands passedDomainObject = x; }); - Assert.Equal(1, domainObject.Snapshot.Version); + Assert.Equal(2, domainObject.Snapshot.Version); Assert.Equal(domainObject, passedDomainObject); Assert.NotNull(context.Result()); @@ -275,7 +275,7 @@ namespace Squidex.Infrastructure.Commands passedDomainObject = x; }); - Assert.Equal(1, domainObject.Snapshot.Version); + Assert.Equal(2, domainObject.Snapshot.Version); Assert.Equal(domainObject, passedDomainObject); Assert.NotNull(context.Result());