Skip to content

Commit

Permalink
refactor: move task domain to tasks namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
hamed-shirbandi committed Sep 27, 2023
1 parent efb0bca commit e7a3198
Show file tree
Hide file tree
Showing 96 changed files with 175 additions and 175 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using TaskoMask.BuildingBlocks.Web.MVC.Consumers;
using TaskoMask.BuildingBlocks.Contracts.Events;
using TaskoMask.BuildingBlocks.Application.Bus;
using TaskoMask.Services.Owners.Write.Api.Domain.Data;
using TaskoMask.Services.Owners.Write.Api.Domain.Owners.Data;
using System.Threading.Tasks;

namespace TaskoMask.Services.Owners.Write.Api.Consumers
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using TaskoMask.BuildingBlocks.Application.Bus;
using TaskoMask.BuildingBlocks.Web.MVC.Consumers;
using TaskoMask.BuildingBlocks.Contracts.Events;
using TaskoMask.Services.Owners.Write.Api.Domain.Data;
using TaskoMask.Services.Owners.Write.Api.Domain.Owners.Data;
using System.Threading.Tasks;

namespace TaskoMask.Services.Owners.Write.Api.Consumers
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using TaskoMask.BuildingBlocks.Application.Bus;
using TaskoMask.BuildingBlocks.Web.MVC.Consumers;
using TaskoMask.BuildingBlocks.Contracts.Events;
using TaskoMask.Services.Owners.Write.Api.Domain.Data;
using TaskoMask.Services.Owners.Write.Api.Domain.Owners.Data;
using System.Threading.Tasks;

namespace TaskoMask.Services.Owners.Write.Api.Consumers
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
using System.Threading.Tasks;
using TaskoMask.BuildingBlocks.Domain.Data;
using TaskoMask.Services.Owners.Write.Api.Domain.Entities;
using TaskoMask.Services.Owners.Write.Api.Domain.Owners.Entities;

namespace TaskoMask.Services.Owners.Write.Api.Domain.Data
namespace TaskoMask.Services.Owners.Write.Api.Domain.Owners.Data
{
public interface IOwnerAggregateRepository : IBaseAggregateRepository<Owner>
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
using TaskoMask.BuildingBlocks.Domain.Exceptions;
using TaskoMask.BuildingBlocks.Contracts.Resources;
using TaskoMask.Services.Owners.Write.Api.Domain.ValueObjects.Organizations;
using TaskoMask.Services.Owners.Write.Api.Domain.Specifications;
using TaskoMask.Services.Owners.Write.Api.Domain.Owners.ValueObjects.Organizations;
using TaskoMask.Services.Owners.Write.Api.Domain.Owners.Specifications;
using TaskoMask.BuildingBlocks.Domain.Resources;
using MongoDB.Bson;
using System.Collections.Generic;
using System.Linq;
using TaskoMask.BuildingBlocks.Domain.Entities;

namespace TaskoMask.Services.Owners.Write.Api.Domain.Entities
namespace TaskoMask.Services.Owners.Write.Api.Domain.Owners.Entities
{
public class Organization : BaseEntity
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
using TaskoMask.BuildingBlocks.Domain.Exceptions;
using TaskoMask.BuildingBlocks.Contracts.Helpers;
using TaskoMask.BuildingBlocks.Contracts.Resources;
using TaskoMask.Services.Owners.Write.Api.Domain.Events.Organizations;
using TaskoMask.Services.Owners.Write.Api.Domain.Events.Owners;
using TaskoMask.Services.Owners.Write.Api.Domain.Events.Projects;
using TaskoMask.Services.Owners.Write.Api.Domain.Specifications;
using TaskoMask.Services.Owners.Write.Api.Domain.ValueObjects.Owners;
using TaskoMask.Services.Owners.Write.Api.Domain.Owners.Events.Organizations;
using TaskoMask.Services.Owners.Write.Api.Domain.Owners.Events.Owners;
using TaskoMask.Services.Owners.Write.Api.Domain.Owners.Events.Projects;
using TaskoMask.Services.Owners.Write.Api.Domain.Owners.Specifications;
using TaskoMask.Services.Owners.Write.Api.Domain.Owners.ValueObjects.Owners;
using TaskoMask.BuildingBlocks.Domain.Resources;
using MongoDB.Bson;
using TaskoMask.Services.Owners.Write.Api.Domain.Services;
using TaskoMask.Services.Owners.Write.Api.Domain.Owners.Services;
using System.Linq;
using System.Collections.Generic;
using TaskoMask.BuildingBlocks.Domain.Entities;

namespace TaskoMask.Services.Owners.Write.Api.Domain.Entities
namespace TaskoMask.Services.Owners.Write.Api.Domain.Owners.Entities
{
/// <summary>
/// Owners are those who manage their tasks in this system
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
using TaskoMask.BuildingBlocks.Domain.Exceptions;
using TaskoMask.BuildingBlocks.Contracts.Resources;
using TaskoMask.Services.Owners.Write.Api.Domain.Specifications;
using TaskoMask.Services.Owners.Write.Api.Domain.ValueObjects.Projects;
using TaskoMask.Services.Owners.Write.Api.Domain.Owners.Specifications;
using TaskoMask.Services.Owners.Write.Api.Domain.Owners.ValueObjects.Projects;
using TaskoMask.BuildingBlocks.Domain.Resources;
using MongoDB.Bson;
using TaskoMask.BuildingBlocks.Domain.Entities;

namespace TaskoMask.Services.Owners.Write.Api.Domain.Entities
namespace TaskoMask.Services.Owners.Write.Api.Domain.Owners.Entities
{
public class Project : 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.Owners.Write.Api.Domain.Events.Organizations
namespace TaskoMask.Services.Owners.Write.Api.Domain.Owners.Events.Organizations
{
public class OrganizationAddedEvent : 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.Owners.Write.Api.Domain.Events.Organizations
namespace TaskoMask.Services.Owners.Write.Api.Domain.Owners.Events.Organizations
{
public class OrganizationDeletedEvent : 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.Owners.Write.Api.Domain.Events.Organizations
namespace TaskoMask.Services.Owners.Write.Api.Domain.Owners.Events.Organizations
{
public class OrganizationUpdatedEvent : 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.Owners.Write.Api.Domain.Events.Owners
namespace TaskoMask.Services.Owners.Write.Api.Domain.Owners.Events.Owners
{
public class OwnerProfileUpdatedEvent : 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.Owners.Write.Api.Domain.Events.Owners
namespace TaskoMask.Services.Owners.Write.Api.Domain.Owners.Events.Owners
{
public class OwnerRegisteredEvent : 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.Owners.Write.Api.Domain.Events.Projects
namespace TaskoMask.Services.Owners.Write.Api.Domain.Owners.Events.Projects
{
public class ProjectAddedEvent : 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.Owners.Write.Api.Domain.Events.Projects
namespace TaskoMask.Services.Owners.Write.Api.Domain.Owners.Events.Projects
{
public class ProjectDeletedEvent : 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.Owners.Write.Api.Domain.Events.Projects
namespace TaskoMask.Services.Owners.Write.Api.Domain.Owners.Events.Projects
{
public class ProjectUpdatedEvent : DomainEvent
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

namespace TaskoMask.Services.Owners.Write.Api.Domain.Services
namespace TaskoMask.Services.Owners.Write.Api.Domain.Owners.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.Owners.Write.Api.Domain.Entities;
using TaskoMask.Services.Owners.Write.Api.Domain.Owners.Entities;

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

namespace TaskoMask.Services.Owners.Write.Api.Domain.Specifications
namespace TaskoMask.Services.Owners.Write.Api.Domain.Owners.Specifications
{
internal class OrganizationNameAndDescriptionCannotSameSpecification : ISpecification<Organization>
{
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.Owners.Write.Api.Domain.Entities;
using TaskoMask.Services.Owners.Write.Api.Domain.Owners.Entities;

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

namespace TaskoMask.Services.Owners.Write.Api.Domain.Specifications
namespace TaskoMask.Services.Owners.Write.Api.Domain.Owners.Specifications
{
internal class OwnerEmailMustUniqueSpecification : ISpecification<Owner>
{
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.Owners.Write.Api.Domain.Entities;
using TaskoMask.Services.Owners.Write.Api.Domain.Owners.Entities;

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

namespace TaskoMask.Services.Owners.Write.Api.Domain.Specifications
namespace TaskoMask.Services.Owners.Write.Api.Domain.Owners.Specifications
{
internal class ProjectNameAndDescriptionCannotSameSpecification : ISpecification<Project>
{
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.Owners.Write.Api.Domain.Entities;
using TaskoMask.Services.Owners.Write.Api.Domain.Owners.Entities;

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

internal class ProjectNameMustUniqueSpecification : ISpecification<Owner>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
using System.Collections.Generic;
using TaskoMask.BuildingBlocks.Domain.ValueObjects;

namespace TaskoMask.Services.Owners.Write.Api.Domain.ValueObjects.Organizations
namespace TaskoMask.Services.Owners.Write.Api.Domain.Owners.ValueObjects.Organizations
{
public class OrganizationDescription : BaseValueObject
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
using System.Collections.Generic;
using TaskoMask.BuildingBlocks.Domain.ValueObjects;

namespace TaskoMask.Services.Owners.Write.Api.Domain.ValueObjects.Organizations
namespace TaskoMask.Services.Owners.Write.Api.Domain.Owners.ValueObjects.Organizations
{
public class OrganizationName : BaseValueObject
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
using System.Collections.Generic;
using TaskoMask.BuildingBlocks.Domain.ValueObjects;

namespace TaskoMask.Services.Owners.Write.Api.Domain.ValueObjects.Owners
namespace TaskoMask.Services.Owners.Write.Api.Domain.Owners.ValueObjects.Owners
{
/// <summary>
///
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
using System.Collections.Generic;
using TaskoMask.BuildingBlocks.Domain.ValueObjects;

namespace TaskoMask.Services.Owners.Write.Api.Domain.ValueObjects.Owners
namespace TaskoMask.Services.Owners.Write.Api.Domain.Owners.ValueObjects.Owners
{
/// <summary>
///
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
using System.Collections.Generic;
using TaskoMask.BuildingBlocks.Domain.ValueObjects;

namespace TaskoMask.Services.Owners.Write.Api.Domain.ValueObjects.Projects
namespace TaskoMask.Services.Owners.Write.Api.Domain.Owners.ValueObjects.Projects
{
public class ProjectDescription : BaseValueObject
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
using System.Collections.Generic;
using TaskoMask.BuildingBlocks.Domain.ValueObjects;

namespace TaskoMask.Services.Owners.Write.Api.Domain.ValueObjects.Projects
namespace TaskoMask.Services.Owners.Write.Api.Domain.Owners.ValueObjects.Projects
{
public class ProjectName : 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.Owners.Write.Api.UseCases.Owners.RegiserOwner;
using TaskoMask.Services.Owners.Write.Api.Domain.Data;
using TaskoMask.Services.Owners.Write.Api.Domain.Services;
using TaskoMask.Services.Owners.Write.Api.Domain.Owners.Data;
using TaskoMask.Services.Owners.Write.Api.Domain.Owners.Services;
using TaskoMask.Services.Owners.Write.Api.Infrastructure.Data.DbContext;
using TaskoMask.Services.Owners.Write.Api.Infrastructure.Data.Repositories;
using TaskoMask.Services.Owners.Write.Api.Infrastructure.Data.Services;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using Microsoft.Extensions.DependencyInjection;
using MongoDB.Driver;
using System;
using TaskoMask.Services.Owners.Write.Api.Domain.Entities;
using TaskoMask.Services.Owners.Write.Api.Domain.Owners.Entities;

namespace TaskoMask.Services.Owners.Write.Api.Infrastructure.Data.DbContext
{
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.Owners.Write.Api.Domain.Entities;
using TaskoMask.Services.Owners.Write.Api.Domain.Owners.Entities;

namespace TaskoMask.Services.Owners.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.Owners.Write.Api.Domain.Data;
using TaskoMask.Services.Owners.Write.Api.Domain.Entities;
using TaskoMask.Services.Owners.Write.Api.Domain.Owners.Data;
using TaskoMask.Services.Owners.Write.Api.Domain.Owners.Entities;
using TaskoMask.Services.Owners.Write.Api.Infrastructure.Data.DbContext;

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

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

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

namespace TaskoMask.Services.Owners.Write.Api.UseCases.Organizations.AddOrganization
{
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.Owners.Write.Api.Domain.Data;
using TaskoMask.Services.Owners.Write.Api.Domain.Events.Organizations;
using TaskoMask.Services.Owners.Write.Api.Domain.Services;
using TaskoMask.Services.Owners.Write.Api.Domain.Owners.Data;
using TaskoMask.Services.Owners.Write.Api.Domain.Owners.Events.Organizations;
using TaskoMask.Services.Owners.Write.Api.Domain.Owners.Services;

namespace TaskoMask.Services.Owners.Write.Api.UseCases.Organizations.DeleteOrganization
{
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.Owners.Write.Api.Domain.Data;
using TaskoMask.Services.Owners.Write.Api.Domain.Events.Organizations;
using TaskoMask.Services.Owners.Write.Api.Domain.Services;
using TaskoMask.Services.Owners.Write.Api.Domain.Owners.Data;
using TaskoMask.Services.Owners.Write.Api.Domain.Owners.Events.Organizations;
using TaskoMask.Services.Owners.Write.Api.Domain.Owners.Services;

namespace TaskoMask.Services.Owners.Write.Api.UseCases.Organizations.UpdateOrganization
{
Expand Down
Loading

0 comments on commit e7a3198

Please sign in to comment.