Skip to content

Commit

Permalink
Merge pull request #72 from LBHackney-IT/mr-864/disconnect-staff-search
Browse files Browse the repository at this point in the history
Remove Staff and StaffPatch
  • Loading branch information
adamtry authored Dec 6, 2023
2 parents 619e4bb + c3c9231 commit fd6ac0f
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 136 deletions.
28 changes: 0 additions & 28 deletions Hackney.Shared.HousingSearch/Domain/Staff/Staff.cs

This file was deleted.

12 changes: 0 additions & 12 deletions Hackney.Shared.HousingSearch/Domain/Staff/StaffPatch.cs

This file was deleted.

23 changes: 0 additions & 23 deletions Hackney.Shared.HousingSearch/Factories/DomainFactory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
using System.Collections.Generic;
using System.Linq;
using System;
using Hackney.Shared.HousingSearch.Domain.Staff;
using Hackney.Shared.HousingSearch.Gateways.Models.Staffs;
using RelatedEntity = Hackney.Shared.HousingSearch.Domain.Process.RelatedEntity;
using PatchAssignment = Hackney.Shared.HousingSearch.Domain.Process.PatchAssignment;

Expand Down Expand Up @@ -54,26 +52,5 @@ public static DomainProcess ToDomain(this QueryableProcess entity)
StateStartedAt = (entity.StateStartedAt is null ? (DateTime?)null : DateTime.Parse(entity.StateStartedAt))
};
}

public static StaffPatch ToDomain(this QueryableStaffPatch entity)
{
return new StaffPatch
{
Id = entity.Id,
Name = entity.Name,
AreaId = entity.AreaId,
AreaName = entity.AreaName
};
}

public static List<StaffPatch> ToDomain(this List<QueryableStaffPatch> patches)
{
return patches.Select(x => x.ToDomain()).ToList();
}

public static Staff ToDomain(this QueryableStaff entity)
{
return new Staff(entity.FirstName, entity.LastName, entity.EmailAddress, entity.Patches.ToDomain());
}
}
}
26 changes: 0 additions & 26 deletions Hackney.Shared.HousingSearch/Factories/EntityFactory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,6 @@
using DomainProcess = Hackney.Shared.HousingSearch.Domain.Process.Process;
using System.Collections.Generic;
using System.Linq;
using System;
using Hackney.Shared.HousingSearch.Gateways.Models.Staffs;
using Hackney.Shared.HousingSearch.Domain.Staff;
using Hackney.Shared.HousingSearch.Domain.Process;
using Hackney.Shared.Processes.Domain;
using HousingSearchRelatedEntity = Hackney.Shared.HousingSearch.Domain.Process.RelatedEntity;
using Process = Hackney.Shared.Processes.Domain.Process;
using RelatedEntity = Hackney.Shared.Processes.Domain.RelatedEntity;
Expand Down Expand Up @@ -60,27 +55,6 @@ public static QueryableProcess ToDatabase(this DomainProcess entity)
};
}

public static QueryableStaffPatch ToDatabase(this StaffPatch entity)
{
return new QueryableStaffPatch
{
Id = entity.Id.ToString(),
Name = entity.Name,
AreaId = entity.AreaId.ToString(),
AreaName = entity.AreaName
};
}

public static List<QueryableStaffPatch> ToDatabase(this List<StaffPatch> patches)
{
return patches.Select(x => x.ToDatabase()).ToList();
}

public static QueryableStaff ToDatabase(this Staff entity)
{
return new QueryableStaff(entity.FirstName, entity.LastName, entity.EmailAddress, entity.Patches.ToDatabase());
}

public static QueryableRelatedEntity ToElasticSearch(this RelatedEntity entity)
{
return new QueryableRelatedEntity()
Expand Down

This file was deleted.

This file was deleted.

0 comments on commit fd6ac0f

Please sign in to comment.