24 lines
704 B
C#
24 lines
704 B
C#
using StructureHelperCommon.Infrastructures.Interfaces;
|
|
|
|
namespace StructureHelperLogics.Models.BeamShears
|
|
{
|
|
public class BeamShear : IBeamShear
|
|
{
|
|
private ICloneStrategy<IBeamShear> cloneStrategy;
|
|
public Guid Id { get; }
|
|
public IBeamShearRepository Repository { get; set; } = new BeamShearRepository(Guid.NewGuid());
|
|
public BeamShear(Guid id)
|
|
{
|
|
Id = id;
|
|
}
|
|
|
|
public object Clone()
|
|
{
|
|
var cloningStrategy = new DeepCloningStrategy();
|
|
cloneStrategy = new BeamShearCloneStrategy(cloningStrategy);
|
|
var newItem = cloneStrategy.GetClone(this);
|
|
return newItem;
|
|
}
|
|
}
|
|
}
|