Skip to content

Commit

Permalink
refactor: move board domain to boards namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
hamed-shirbandi committed Sep 27, 2023
1 parent 6376e6e commit efb0bca
Show file tree
Hide file tree
Showing 40 changed files with 72 additions and 72 deletions.
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
using System.Collections.Generic;
using System.Threading.Tasks;
using TaskoMask.BuildingBlocks.Domain.Data;
using TaskoMask.Services.Boards.Write.Api.Domain.Entities;
using TaskoMask.Services.Boards.Write.Api.Domain.Boards.Entities;

namespace TaskoMask.Services.Boards.Write.Api.Domain.Data
namespace TaskoMask.Services.Boards.Write.Api.Domain.Boards.Data
{
public interface IBoardAggregateRepository : IBaseAggregateRepository<Board>
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,18 @@
using System.Linq;
using TaskoMask.BuildingBlocks.Contracts.Resources;
using TaskoMask.BuildingBlocks.Domain.Exceptions;
using TaskoMask.Services.Boards.Write.Api.Domain.ValueObjects.Boards;
using TaskoMask.Services.Boards.Write.Api.Domain.Boards.ValueObjects.Boards;
using TaskoMask.BuildingBlocks.Contracts.Enums;
using TaskoMask.Services.Boards.Write.Api.Domain.Specifications;
using TaskoMask.Services.Boards.Write.Api.Domain.Boards.Specifications;
using TaskoMask.BuildingBlocks.Contracts.Helpers;
using TaskoMask.Services.Boards.Write.Api.Domain.Services;
using TaskoMask.Services.Boards.Write.Api.Domain.Boards.Services;
using TaskoMask.BuildingBlocks.Domain.Resources;
using MongoDB.Bson;
using TaskoMask.Services.Boards.Write.Api.Domain.Events.Boards;
using TaskoMask.Services.Boards.Write.Api.Domain.Events.Cards;
using TaskoMask.Services.Boards.Write.Api.Domain.Boards.Events.Boards;
using TaskoMask.Services.Boards.Write.Api.Domain.Boards.Events.Cards;
using TaskoMask.BuildingBlocks.Domain.Entities;

namespace TaskoMask.Services.Boards.Write.Api.Domain.Entities
namespace TaskoMask.Services.Boards.Write.Api.Domain.Boards.Entities
{
public class Board: AggregateRoot
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
using TaskoMask.BuildingBlocks.Contracts.Enums;
using TaskoMask.Services.Boards.Write.Api.Domain.ValueObjects.Cards;
using TaskoMask.Services.Boards.Write.Api.Domain.Boards.ValueObjects.Cards;
using TaskoMask.BuildingBlocks.Contracts.Resources;
using TaskoMask.BuildingBlocks.Domain.Exceptions;
using MongoDB.Bson;
using TaskoMask.BuildingBlocks.Domain.Entities;

namespace TaskoMask.Services.Boards.Write.Api.Domain.Entities
namespace TaskoMask.Services.Boards.Write.Api.Domain.Boards.Entities
{
public class Card : BaseEntity
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using TaskoMask.BuildingBlocks.Domain.Events;
using TaskoMask.BuildingBlocks.Domain.Resources;

namespace TaskoMask.Services.Boards.Write.Api.Domain.Events.Boards
namespace TaskoMask.Services.Boards.Write.Api.Domain.Boards.Events.Boards
{
public class BoardAddedEvent : DomainEvent
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using TaskoMask.BuildingBlocks.Domain.Events;
using TaskoMask.BuildingBlocks.Domain.Resources;

namespace TaskoMask.Services.Boards.Write.Api.Domain.Events.Boards
namespace TaskoMask.Services.Boards.Write.Api.Domain.Boards.Events.Boards
{
public class BoardDeletedEvent : DomainEvent
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using TaskoMask.BuildingBlocks.Domain.Events;
using TaskoMask.BuildingBlocks.Domain.Resources;

namespace TaskoMask.Services.Boards.Write.Api.Domain.Events.Boards
namespace TaskoMask.Services.Boards.Write.Api.Domain.Boards.Events.Boards
{
public class BoardUpdatedEvent : DomainEvent
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using TaskoMask.BuildingBlocks.Domain.Events;
using TaskoMask.BuildingBlocks.Domain.Resources;

namespace TaskoMask.Services.Boards.Write.Api.Domain.Events.Cards
namespace TaskoMask.Services.Boards.Write.Api.Domain.Boards.Events.Cards
{
public class CardAddedEvent : DomainEvent
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using TaskoMask.BuildingBlocks.Domain.Events;
using TaskoMask.BuildingBlocks.Domain.Resources;

namespace TaskoMask.Services.Boards.Write.Api.Domain.Events.Cards
namespace TaskoMask.Services.Boards.Write.Api.Domain.Boards.Events.Cards
{
public class CardDeletedEvent : DomainEvent
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using TaskoMask.BuildingBlocks.Domain.Events;
using TaskoMask.BuildingBlocks.Domain.Resources;

namespace TaskoMask.Services.Boards.Write.Api.Domain.Events.Cards
namespace TaskoMask.Services.Boards.Write.Api.Domain.Boards.Events.Cards
{
public class CardUpdatedEvent : DomainEvent
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

namespace TaskoMask.Services.Boards.Write.Api.Domain.Services
namespace TaskoMask.Services.Boards.Write.Api.Domain.Boards.Services
{
/// <summary>
///
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
using System.Linq;
using TaskoMask.BuildingBlocks.Domain.Specifications;
using TaskoMask.BuildingBlocks.Contracts.Helpers;
using TaskoMask.Services.Boards.Write.Api.Domain.Entities;
using TaskoMask.Services.Boards.Write.Api.Domain.Boards.Entities;

namespace TaskoMask.Services.Boards.Write.Api.Domain.Specifications
namespace TaskoMask.Services.Boards.Write.Api.Domain.Boards.Specifications
{
internal class BoardMaxCardsSpecification : ISpecification<Board>
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using TaskoMask.BuildingBlocks.Domain.Specifications;
using TaskoMask.Services.Boards.Write.Api.Domain.Entities;
using TaskoMask.Services.Boards.Write.Api.Domain.Boards.Entities;

namespace TaskoMask.Services.Boards.Write.Api.Domain.Specifications
namespace TaskoMask.Services.Boards.Write.Api.Domain.Boards.Specifications
{
internal class BoardNameAndDescriptionCannotSameSpecification : ISpecification<Board>
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
using TaskoMask.BuildingBlocks.Domain.Specifications;
using TaskoMask.Services.Boards.Write.Api.Domain.Entities;
using TaskoMask.Services.Boards.Write.Api.Domain.Services;
using TaskoMask.Services.Boards.Write.Api.Domain.Boards.Entities;
using TaskoMask.Services.Boards.Write.Api.Domain.Boards.Services;

namespace TaskoMask.Services.Boards.Write.Api.Domain.Specifications
namespace TaskoMask.Services.Boards.Write.Api.Domain.Boards.Specifications
{
internal class BoardNameMustUniqueSpecification : ISpecification<Board>
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
using System.Linq;
using TaskoMask.BuildingBlocks.Domain.Specifications;
using TaskoMask.Services.Boards.Write.Api.Domain.Entities;
using TaskoMask.Services.Boards.Write.Api.Domain.Boards.Entities;

namespace TaskoMask.Services.Boards.Write.Api.Domain.Specifications
namespace TaskoMask.Services.Boards.Write.Api.Domain.Boards.Specifications
{

internal class CardNameMustUniqueSpecification : ISpecification<Board>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
using TaskoMask.BuildingBlocks.Contracts.Resources;
using TaskoMask.BuildingBlocks.Domain.ValueObjects;

namespace TaskoMask.Services.Boards.Write.Api.Domain.ValueObjects.Boards
namespace TaskoMask.Services.Boards.Write.Api.Domain.Boards.ValueObjects.Boards
{
public class BoardDescription : BaseValueObject
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
using TaskoMask.BuildingBlocks.Contracts.Resources;
using TaskoMask.BuildingBlocks.Domain.ValueObjects;

namespace TaskoMask.Services.Boards.Write.Api.Domain.ValueObjects.Boards
namespace TaskoMask.Services.Boards.Write.Api.Domain.Boards.ValueObjects.Boards
{
public class BoardName : BaseValueObject
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
using TaskoMask.BuildingBlocks.Contracts.Resources;
using TaskoMask.BuildingBlocks.Domain.ValueObjects;

namespace TaskoMask.Services.Boards.Write.Api.Domain.ValueObjects.Boards
namespace TaskoMask.Services.Boards.Write.Api.Domain.Boards.ValueObjects.Boards
{
public class BoardProjectId : BaseValueObject
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
using TaskoMask.BuildingBlocks.Contracts.Resources;
using TaskoMask.BuildingBlocks.Domain.ValueObjects;

namespace TaskoMask.Services.Boards.Write.Api.Domain.ValueObjects.Cards
namespace TaskoMask.Services.Boards.Write.Api.Domain.Boards.ValueObjects.Cards
{
public class CardName : BaseValueObject
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
using TaskoMask.BuildingBlocks.Contracts.Resources;
using TaskoMask.BuildingBlocks.Domain.ValueObjects;

namespace TaskoMask.Services.Boards.Write.Api.Domain.ValueObjects.Cards
namespace TaskoMask.Services.Boards.Write.Api.Domain.Boards.ValueObjects.Cards
{
public class CardType : BaseValueObject
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
using TaskoMask.BuildingBlocks.Infrastructure.Extensions;
using TaskoMask.BuildingBlocks.Infrastructure.MongoDB;
using TaskoMask.Services.Boards.Write.Api.Resources;
using TaskoMask.Services.Boards.Write.Api.Domain.Data;
using TaskoMask.Services.Boards.Write.Api.Domain.Services;
using TaskoMask.Services.Boards.Write.Api.Domain.Boards.Data;
using TaskoMask.Services.Boards.Write.Api.Domain.Boards.Services;
using TaskoMask.Services.Boards.Write.Api.Infrastructure.Data.DbContext;
using TaskoMask.Services.Boards.Write.Api.Infrastructure.Data.Repositories;
using TaskoMask.Services.Boards.Write.Api.Infrastructure.Data.Services;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using MongoDB.Driver;
using TaskoMask.BuildingBlocks.Infrastructure.MongoDB;
using Microsoft.Extensions.Options;
using TaskoMask.Services.Boards.Write.Api.Domain.Entities;
using TaskoMask.Services.Boards.Write.Api.Domain.Boards.Entities;

namespace TaskoMask.Services.Boards.Write.Api.Infrastructure.Data.DbContext
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using Microsoft.Extensions.DependencyInjection;
using MongoDB.Driver;
using System;
using TaskoMask.Services.Boards.Write.Api.Domain.Entities;
using TaskoMask.Services.Boards.Write.Api.Domain.Boards.Entities;

namespace TaskoMask.Services.Boards.Write.Api.Infrastructure.Data.DbContext
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
using System.Linq;
using System.Threading.Tasks;
using TaskoMask.BuildingBlocks.Infrastructure.MongoDB;
using TaskoMask.Services.Boards.Write.Api.Domain.Data;
using TaskoMask.Services.Boards.Write.Api.Domain.Entities;
using TaskoMask.Services.Boards.Write.Api.Domain.Boards.Data;
using TaskoMask.Services.Boards.Write.Api.Domain.Boards.Entities;
using TaskoMask.Services.Boards.Write.Api.Infrastructure.Data.DbContext;

namespace TaskoMask.Services.Boards.Write.Api.Infrastructure.Data.Repositories
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

using TaskoMask.Services.Boards.Write.Api.Domain.Data;
using TaskoMask.Services.Boards.Write.Api.Domain.Services;
using TaskoMask.Services.Boards.Write.Api.Domain.Boards.Data;
using TaskoMask.Services.Boards.Write.Api.Domain.Boards.Services;

namespace TaskoMask.Services.Boards.Write.Api.Infrastructure.Data.Services
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@
using TaskoMask.BuildingBlocks.Contracts.Helpers;
using TaskoMask.BuildingBlocks.Contracts.Resources;
using TaskoMask.BuildingBlocks.Domain.Events;
using TaskoMask.Services.Boards.Write.Api.Domain.Data;
using TaskoMask.Services.Boards.Write.Api.Domain.Entities;
using TaskoMask.Services.Boards.Write.Api.Domain.Events.Boards;
using TaskoMask.Services.Boards.Write.Api.Domain.Services;
using TaskoMask.Services.Boards.Write.Api.Domain.Boards.Data;
using TaskoMask.Services.Boards.Write.Api.Domain.Boards.Entities;
using TaskoMask.Services.Boards.Write.Api.Domain.Boards.Events.Boards;
using TaskoMask.Services.Boards.Write.Api.Domain.Boards.Services;

namespace TaskoMask.Services.Boards.Write.Api.UseCases.Boards.AddBoard
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
using TaskoMask.BuildingBlocks.Contracts.Resources;
using TaskoMask.BuildingBlocks.Domain.Events;
using TaskoMask.BuildingBlocks.Domain.Resources;
using TaskoMask.Services.Boards.Write.Api.Domain.Data;
using TaskoMask.Services.Boards.Write.Api.Domain.Events.Boards;
using TaskoMask.Services.Boards.Write.Api.Domain.Boards.Data;
using TaskoMask.Services.Boards.Write.Api.Domain.Boards.Events.Boards;

namespace TaskoMask.Services.Boards.Write.Api.UseCases.Boards.DeleteBoard
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
using TaskoMask.BuildingBlocks.Contracts.Resources;
using TaskoMask.BuildingBlocks.Domain.Events;
using TaskoMask.BuildingBlocks.Domain.Resources;
using TaskoMask.Services.Boards.Write.Api.Domain.Data;
using TaskoMask.Services.Boards.Write.Api.Domain.Events.Boards;
using TaskoMask.Services.Boards.Write.Api.Domain.Services;
using TaskoMask.Services.Boards.Write.Api.Domain.Boards.Data;
using TaskoMask.Services.Boards.Write.Api.Domain.Boards.Events.Boards;
using TaskoMask.Services.Boards.Write.Api.Domain.Boards.Services;

namespace TaskoMask.Services.Boards.Write.Api.UseCases.Boards.UpdateBoard
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
using TaskoMask.BuildingBlocks.Contracts.Resources;
using TaskoMask.BuildingBlocks.Domain.Events;
using TaskoMask.BuildingBlocks.Domain.Resources;
using TaskoMask.Services.Boards.Write.Api.Domain.Data;
using TaskoMask.Services.Boards.Write.Api.Domain.Entities;
using TaskoMask.Services.Boards.Write.Api.Domain.Events.Cards;
using TaskoMask.Services.Boards.Write.Api.Domain.Boards.Data;
using TaskoMask.Services.Boards.Write.Api.Domain.Boards.Entities;
using TaskoMask.Services.Boards.Write.Api.Domain.Boards.Events.Cards;

namespace TaskoMask.Services.Boards.Write.Api.UseCases.Cards.AddCard
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
using TaskoMask.BuildingBlocks.Contracts.Resources;
using TaskoMask.BuildingBlocks.Domain.Events;
using TaskoMask.BuildingBlocks.Domain.Resources;
using TaskoMask.Services.Boards.Write.Api.Domain.Data;
using TaskoMask.Services.Boards.Write.Api.Domain.Events.Cards;
using TaskoMask.Services.Boards.Write.Api.Domain.Boards.Data;
using TaskoMask.Services.Boards.Write.Api.Domain.Boards.Events.Cards;

namespace TaskoMask.Services.Boards.Write.Api.UseCases.Cards.DeleteCard
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
using TaskoMask.BuildingBlocks.Contracts.Resources;
using TaskoMask.BuildingBlocks.Domain.Events;
using TaskoMask.BuildingBlocks.Domain.Resources;
using TaskoMask.Services.Boards.Write.Api.Domain.Data;
using TaskoMask.Services.Boards.Write.Api.Domain.Events.Cards;
using TaskoMask.Services.Boards.Write.Api.Domain.Boards.Data;
using TaskoMask.Services.Boards.Write.Api.Domain.Boards.Events.Cards;

namespace TaskoMask.Services.Boards.Write.Api.UseCases.Cards.UpdateCard
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using TaskoMask.Services.Boards.Write.Api.Domain.Entities;
using TaskoMask.Services.Boards.Write.Api.Domain.Services;
using TaskoMask.Services.Boards.Write.Api.Domain.Boards.Entities;
using TaskoMask.Services.Boards.Write.Api.Domain.Boards.Services;

namespace TaskoMask.Services.Boards.Write.Tests.Base.TestData
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
using System.Collections.Generic;
using TaskoMask.BuildingBlocks.Contracts.Enums;
using TaskoMask.BuildingBlocks.Test.TestData;
using TaskoMask.Services.Boards.Write.Api.Domain.Entities;
using TaskoMask.Services.Boards.Write.Api.Domain.Services;
using TaskoMask.Services.Boards.Write.Api.Domain.Boards.Entities;
using TaskoMask.Services.Boards.Write.Api.Domain.Boards.Services;

namespace TaskoMask.Services.Boards.Write.Tests.Base.TestData
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
using NSubstitute;
using TaskoMask.BuildingBlocks.Application.Bus;
using TaskoMask.BuildingBlocks.Test.TestBase;
using TaskoMask.Services.Boards.Write.Api.Domain.Data;
using TaskoMask.Services.Boards.Write.Api.Domain.Entities;
using TaskoMask.Services.Boards.Write.Api.Domain.Services;
using TaskoMask.Services.Boards.Write.Api.Domain.Boards.Data;
using TaskoMask.Services.Boards.Write.Api.Domain.Boards.Entities;
using TaskoMask.Services.Boards.Write.Api.Domain.Boards.Services;
using TaskoMask.Services.Boards.Write.Api.Infrastructure.CrossCutting.DI;
using TaskoMask.Services.Boards.Write.Api.Infrastructure.Data.DbContext;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
using NSubstitute;
using TaskoMask.BuildingBlocks.Application.Bus;
using TaskoMask.BuildingBlocks.Test.TestBase;
using TaskoMask.Services.Boards.Write.Api.Domain.Data;
using TaskoMask.Services.Boards.Write.Api.Domain.Entities;
using TaskoMask.Services.Boards.Write.Api.Domain.Services;
using TaskoMask.Services.Boards.Write.Api.Domain.Boards.Data;
using TaskoMask.Services.Boards.Write.Api.Domain.Boards.Entities;
using TaskoMask.Services.Boards.Write.Api.Domain.Boards.Services;
using TaskoMask.Services.Boards.Write.Tests.Base.TestData;

namespace TaskoMask.Services.Boards.Write.Tests.Unit.Fixtures
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
using TaskoMask.BuildingBlocks.Domain.Exceptions;
using TaskoMask.BuildingBlocks.Domain.Resources;
using TaskoMask.Services.Boards.Write.Api.UseCases.Boards.AddBoard;
using TaskoMask.Services.Boards.Write.Api.Domain.Events.Boards;
using TaskoMask.Services.Boards.Write.Api.Domain.ValueObjects.Boards;
using TaskoMask.Services.Boards.Write.Api.Domain.Boards.Events.Boards;
using TaskoMask.Services.Boards.Write.Api.Domain.Boards.ValueObjects.Boards;
using TaskoMask.Services.Boards.Write.Tests.Unit.Fixtures;
using Xunit;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
using TaskoMask.BuildingBlocks.Contracts.Resources;
using TaskoMask.BuildingBlocks.Domain.Resources;
using TaskoMask.Services.Boards.Write.Api.UseCases.Boards.DeleteBoard;
using TaskoMask.Services.Boards.Write.Api.Domain.Events.Boards;
using TaskoMask.Services.Boards.Write.Api.Domain.Boards.Events.Boards;
using TaskoMask.Services.Boards.Write.Tests.Unit.Fixtures;
using Xunit;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
using TaskoMask.BuildingBlocks.Contracts.Resources;
using TaskoMask.BuildingBlocks.Domain.Resources;
using TaskoMask.Services.Boards.Write.Api.UseCases.Boards.UpdateBoard;
using TaskoMask.Services.Boards.Write.Api.Domain.Events.Boards;
using TaskoMask.Services.Boards.Write.Api.Domain.Boards.Events.Boards;
using TaskoMask.Services.Boards.Write.Tests.Unit.Fixtures;
using Xunit;

Expand Down
Loading

0 comments on commit efb0bca

Please sign in to comment.