![]() |
VOOZH | about |
dotnet add package StructuralAnalysisFormat.Tests.Infrastructure --version 1.7.3
NuGet\Install-Package StructuralAnalysisFormat.Tests.Infrastructure -Version 1.7.3
<PackageReference Include="StructuralAnalysisFormat.Tests.Infrastructure" Version="1.7.3" />
<PackageVersion Include="StructuralAnalysisFormat.Tests.Infrastructure" Version="1.7.3" />Directory.Packages.props
<PackageReference Include="StructuralAnalysisFormat.Tests.Infrastructure" />Project file
paket add StructuralAnalysisFormat.Tests.Infrastructure --version 1.7.3
#r "nuget: StructuralAnalysisFormat.Tests.Infrastructure, 1.7.3"
#:package StructuralAnalysisFormat.Tests.Infrastructure@1.7.3
#addin nuget:?package=StructuralAnalysisFormat.Tests.Infrastructure&version=1.7.3Install as a Cake Addin
#tool nuget:?package=StructuralAnalysisFormat.Tests.Infrastructure&version=1.7.3Install as a Cake Tool
This package adds some functionality that may come in handy for testing purposes.
One of the features are what we call data builders These are fluent-api classes that allow you to quickly construct data objects that by default pass validation. They also have the benefit that if a property would be renamed on an object, the data builder will be adjusted but the API of the builder remains the same. Which means you won't have to make any changes to your test code!
Any values unit wise that are set using doubles, will always be metric as this is how the data builders are set up. If the builder accepts actual units, you are free to provide it with units defined in the imperial system for example.
While we do our best to make sure that the model actually makes sense in the context of structural engineering, this may sometimes not be the case.
So it may happen that some objects constructed by either the data builders or from the house model have weird values that do not make sense to a structural engineer.
The API is the same for each builder available.
In general (replace <NameOfDataObject> with the name of object):
<NameOfDataObject>Builder.Create(); will quickly create an object using either pre-defined or random values that are considered valid in terms of validation<NameOfDataObject>Builder.Setup(); allows you to enter "configuration" mode for the builder<NameOfDataObject>Builder.Setup() ... .Build(); will construct the object for you using the configured settings you have defined in the ... partusing SAF.Infrastructure.Tests.DataBuilders.StructuralElements;
using SAF.DataAccess.Models.StructuralElements;
// Create a node with zero value coordinates (X,Y,Z)
ExcelStructuralPointConnection node = ExcelStructuralPointConnectionBuilder.Create();
// Create a node with coordinate values, X = 2 meters, Y = 5.5 meters and Z = 7 meters
ExcelStructuralPointConnection node2 = ExcelStructuralPointConnectionBuilder
.Setup()
.WithCoordinates(2D, 5.5D, 7D)
.Build();
Another feature is that we have included a full-blown house model.
The goal of this model is to include every supported object from the SDK.
You can get this model by executing the following lines of code:
using SAF.Infrastructure.Tests.Models;
using SAF.DataAccess.Models;
House house = new House();
ExcelModel houseAsModel = house.Construct();
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 net5.0 was computed. net5.0-windows net5.0-windows was computed. net6.0 net6.0 was computed. net6.0-android net6.0-android was computed. net6.0-ios net6.0-ios was computed. net6.0-maccatalyst net6.0-maccatalyst was computed. net6.0-macos net6.0-macos was computed. net6.0-tvos net6.0-tvos was computed. net6.0-windows net6.0-windows was computed. net7.0 net7.0 was computed. net7.0-android net7.0-android was computed. net7.0-ios net7.0-ios was computed. net7.0-maccatalyst net7.0-maccatalyst was computed. net7.0-macos net7.0-macos was computed. net7.0-tvos net7.0-tvos was computed. net7.0-windows net7.0-windows was computed. net8.0 net8.0 was computed. net8.0-android net8.0-android was computed. net8.0-browser net8.0-browser was computed. net8.0-ios net8.0-ios was computed. net8.0-maccatalyst net8.0-maccatalyst was computed. net8.0-macos net8.0-macos was computed. net8.0-tvos net8.0-tvos was computed. net8.0-windows net8.0-windows was computed. net9.0 net9.0 was computed. net9.0-android net9.0-android was computed. net9.0-browser net9.0-browser was computed. net9.0-ios net9.0-ios was computed. net9.0-maccatalyst net9.0-maccatalyst was computed. net9.0-macos net9.0-macos was computed. net9.0-tvos net9.0-tvos was computed. net9.0-windows net9.0-windows was computed. net10.0 net10.0 was computed. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
| .NET Core | netcoreapp2.0 netcoreapp2.0 was computed. netcoreapp2.1 netcoreapp2.1 was computed. netcoreapp2.2 netcoreapp2.2 was computed. netcoreapp3.0 netcoreapp3.0 was computed. netcoreapp3.1 netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 netstandard2.0 is compatible. netstandard2.1 netstandard2.1 was computed. |
| .NET Framework | net461 net461 was computed. net462 net462 was computed. net463 net463 was computed. net47 net47 was computed. net471 net471 was computed. net472 net472 was computed. net48 net48 was computed. net481 net481 was computed. |
| MonoAndroid | monoandroid monoandroid was computed. |
| MonoMac | monomac monomac was computed. |
| MonoTouch | monotouch monotouch was computed. |
| Tizen | tizen40 tizen40 was computed. tizen60 tizen60 was computed. |
| Xamarin.iOS | xamarinios xamarinios was computed. |
| Xamarin.Mac | xamarinmac xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos xamarinwatchos was computed. |
This package is not used by any NuGet packages.
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.7.3 | 328 | 4/4/2025 |
| 1.7.3-alpha00001 | 193 | 11/8/2024 |
| 1.7.3-alpha.1 | 124 | 11/8/2024 |
| 1.7.2 | 319 | 2/20/2024 |
| 1.7.1 | 473 | 2/14/2023 |
| 1.7.0 | 455 | 2/10/2023 |
| 1.6.1 | 416 | 2/7/2023 |
| 1.6.0 | 441 | 1/30/2023 |
| 1.5.6 | 506 | 11/21/2022 |
| 1.5.5 | 568 | 10/10/2022 |
| 1.5.4 | 631 | 9/22/2022 |
| 1.5.3 | 593 | 9/20/2022 |
| 1.5.2 | 584 | 9/16/2022 |
| 1.5.1 | 623 | 9/7/2022 |
| 1.5.0 | 597 | 8/26/2022 |
| 1.4.0 | 605 | 7/29/2022 |
| 1.3.2 | 621 | 6/10/2022 |