/// <summary> /// Creates an instance of <see cref="MacroStabilityInwardsOutput"/> without slices. /// </summary> /// <returns>A <see cref="MacroStabilityInwardsOutput"/>.</returns> public static MacroStabilityInwardsOutput CreateOutputWithoutSlices() { return(new MacroStabilityInwardsOutput( new MacroStabilityInwardsSlidingCurve(MacroStabilityInwardsSlidingCircleTestFactory.Create(), MacroStabilityInwardsSlidingCircleTestFactory.Create(), Enumerable.Empty <MacroStabilityInwardsSlice>(), 0, 0), new MacroStabilityInwardsSlipPlaneUpliftVan(MacroStabilityInwardsGridTestFactory.Create(), MacroStabilityInwardsGridTestFactory.Create(), new RoundedDouble[0]), new MacroStabilityInwardsOutput.ConstructionProperties())); }
/// <summary> /// Creates an instance of <see cref="MacroStabilityInwardsOutput"/>. /// </summary> /// <param name="properties">The container of the properties for the <see cref="MacroStabilityInwardsOutput"/>.</param> /// <returns>A <see cref="MacroStabilityInwardsOutput"/>.</returns> /// <exception cref="ArgumentNullException">Thrown when <paramref name="properties"/> /// is <c>null</c>.</exception> public static MacroStabilityInwardsOutput CreateOutput(MacroStabilityInwardsOutput.ConstructionProperties properties) { return(new MacroStabilityInwardsOutput(new MacroStabilityInwardsSlidingCurve(MacroStabilityInwardsSlidingCircleTestFactory.Create(), MacroStabilityInwardsSlidingCircleTestFactory.Create(), new[] { MacroStabilityInwardsSliceTestFactory.CreateSlice(), MacroStabilityInwardsSliceTestFactory.CreateSlice(), MacroStabilityInwardsSliceTestFactory.CreateSlice() }, 0, 0), new MacroStabilityInwardsSlipPlaneUpliftVan(MacroStabilityInwardsGridTestFactory.Create(), MacroStabilityInwardsGridTestFactory.Create(), new[] { (RoundedDouble)(-3.5), (RoundedDouble)0.0, (RoundedDouble)2.0 }), properties)); }