Add beam shear converting to DTO
This commit is contained in:
@@ -9,9 +9,9 @@ namespace StructureHelperLogics.Models.BeamShears
|
||||
private ICloneStrategy<IBeamShearRepository> cloneStrategy;
|
||||
public Guid Id { get; }
|
||||
public List<IBeamShearAction> Actions { get; } = new();
|
||||
public List<ICalculator> Calculators { get; } = new();
|
||||
public List<IBeamShearSection> Sections { get; } = new();
|
||||
public List<IStirrup> Stirrups { get; } = new();
|
||||
public List<ICalculator> Calculators { get; } = new();
|
||||
|
||||
|
||||
public BeamShearRepository(Guid id)
|
||||
|
||||
@@ -33,11 +33,11 @@ namespace StructureHelperLogics.Models.BeamShears
|
||||
IBeamShearAction shearAction = BeamShearActionFactory.GetBeamShearAction(ShearActionTypes.DistributedLoad);
|
||||
shearAction.Name = "New shear action";
|
||||
shearRepository.Actions.Add(shearAction);
|
||||
BeamShearSection section = new(Guid.Empty) { Name = "New shear section"};
|
||||
BeamShearSection section = new(Guid.NewGuid()) { Name = "New shear section"};
|
||||
shearRepository.Sections.Add(section);
|
||||
StirrupByRebar stirrupByUniformRebar = new(Guid.Empty) { Name = "New uniform stirrup"};
|
||||
StirrupByRebar stirrupByUniformRebar = new(Guid.NewGuid()) { Name = "New uniform stirrup"};
|
||||
shearRepository.Stirrups.Add(stirrupByUniformRebar);
|
||||
BeamShearCalculator beamShearCalculator = new(Guid.Empty) { Name = "New shear calculator"};
|
||||
BeamShearCalculator beamShearCalculator = new(Guid.NewGuid()) { Name = "New shear calculator"};
|
||||
beamShearCalculator.InputData.Sections.Add(section);
|
||||
beamShearCalculator.InputData.Stirrups.Add(stirrupByUniformRebar);
|
||||
beamShearCalculator.InputData.Actions.Add(shearAction);
|
||||
|
||||
@@ -10,6 +10,5 @@ namespace StructureHelperLogics.Models.BeamShears
|
||||
public interface IBeamShearCalculator : ICalculator
|
||||
{
|
||||
IBeamShearCalculatorInputData InputData { get; set; }
|
||||
bool ShowTraceData { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,10 +1,5 @@
|
||||
using StructureHelperCommon.Infrastructures.Interfaces;
|
||||
using StructureHelperCommon.Models.Calculators;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace StructureHelperLogics.Models.BeamShears
|
||||
{
|
||||
|
||||
@@ -6,7 +6,7 @@ using StructureHelperCommon.Models.Calculators;
|
||||
|
||||
namespace StructureHelperLogics.Models.BeamShears
|
||||
{
|
||||
public interface IBeamShearRepository : ISaveable, IHasBeamShearActions, IHasCalculators, IHasBeamShearSections, IHasStirrups, ICloneable
|
||||
public interface IBeamShearRepository : ISaveable, IHasBeamShearActions, IHasBeamShearSections, IHasStirrups,IHasCalculators, ICloneable
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user