Skip to content

Commit

Permalink
Simplify namespace of test models.
Browse files Browse the repository at this point in the history
  • Loading branch information
Corniel Nobel committed Jun 7, 2023
1 parent d209a18 commit 53bae33
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 13 deletions.
4 changes: 1 addition & 3 deletions specs/Benchmarks/Collections/Creation.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using System.Linq;

namespace Benchmarks.Collections;
namespace Benchmarks.Collections;

[MemoryDiagnoser]
public class Creation
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using Qowaiv.DomainModel;
using Qowaiv.DomainModel.UnitTests.Models;

namespace Event_sourced_aggregate_specs
{
Expand Down
7 changes: 4 additions & 3 deletions test/Qowaiv.DomainModel.UnitTests/Models/AggregateStub.cs
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
using System.Diagnostics.Contracts;
using Qowaiv.DomainModel;
using System.Diagnostics.Contracts;

namespace Qowaiv.DomainModel.UnitTests.Models;
namespace Models;

internal sealed class AggregateStub : Aggregate<AggregateStub, int>
{
public AggregateStub()
: base(0, Validation.Abstractions.Validator.Empty<AggregateStub>()) { }
: base(0, Qowaiv.Validation.Abstractions.Validator.Empty<AggregateStub>()) { }

[Pure]
public AggregateStub Add(params object[] events)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Models.Events;
using Qowaiv.DomainModel;

namespace Qowaiv.DomainModel.UnitTests.Models;
namespace Models;

public sealed class SimpleEventSourcedAggregate : Aggregate<SimpleEventSourcedAggregate, Guid>
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
using FluentValidation;
using Qowaiv.Validation.Fluent;

namespace Qowaiv.DomainModel.UnitTests.Models;
namespace Models;

public class SimpleEventSourcedAggregateValidator : ModelValidator<SimpleEventSourcedAggregate>
public sealed class SimpleEventSourcedAggregateValidator : ModelValidator<SimpleEventSourcedAggregate>
{
public SimpleEventSourcedAggregateValidator()
{
Expand Down
3 changes: 1 addition & 2 deletions test/Qowaiv.DomainModel.UnitTests/Must_specs.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using Qowaiv.DomainModel.UnitTests.Models;
using Qowaiv.Validation.Guarding;
using Qowaiv.Validation.Guarding;
using Qowaiv.Validation.Messages;

namespace Must_specs
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
global using FluentAssertions;
global using Models;
global using Models.Events;
global using NUnit.Framework;
global using Qowaiv;
Expand Down

0 comments on commit 53bae33

Please sign in to comment.