FileImportActivityTest.cs

Clone Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Updating copyright year. WTI-2951

  1. … 5657 more files in changeset.
Updating copyright year. WTI-2914

  1. … 5658 more files in changeset.
Fixing Sonarcloud issues. WTI-2889

  1. … 3 more files in changeset.
Updated copyright year. WTI-2882

  1. … 5659 more files in changeset.
Updated license headers. WTI-2820

  1. … 136 more files in changeset.
Updated year in license header to 2022. WTI-2715

  1. … 5729 more files in changeset.
Adapted copyright year. WTI-2195

  1. … 431 more files in changeset.
Updated license headers in source files of test\Core.Common. WTI-1931

  1. … 241 more files in changeset.
Changed copyright year. Paired with lubbers. WTI-1828

  1. … 6095 more files in changeset.
Review related changes Related to Issue [WTI-1097]

git-svn-id: https://repos.deltares.nl/repos/WettelijkToetsInstrumentarium/trunk@10253 5a3db67b-de53-47b5-99c8-a1c30a6650e2

Former-commit-id: 90954e16c7475c12dd545a58fdfdde4b0f053b9e

Former-commit-id: b408b96afece6a165e4a5e10b4562c695c956be6

  1. … 14 more files in changeset.
Final review related changes Related to Issue [WTI-352]

git-svn-id: https://repos.deltares.nl/repos/WettelijkToetsInstrumentarium/trunk@10227 5a3db67b-de53-47b5-99c8-a1c30a6650e2

Former-commit-id: 7113d5f12622f5cd01fbf5b20dcbc4502f013ddc

Former-commit-id: d7735397a6c149fb45e3ead522aab0be58fad5e4

  1. … 2 more files in changeset.
Merged revision(s) from branches/1097

Related to Issue [WTI-1097]

git-svn-id: https://repos.deltares.nl/repos/WettelijkToetsInstrumentarium/trunk@10182 5a3db67b-de53-47b5-99c8-a1c30a6650e2

Former-commit-id: 96f1603afbcbdf665f6ad32a8dfea44f6045b869

Former-commit-id: 0d99ea5fdd3146735e103c57712ef8728c1f11b6

  1. … 79 more files in changeset.
Fixed failing tests Related to Issue [WTI-352]

git-svn-id: https://repos.deltares.nl/repos/WettelijkToetsInstrumentarium/trunk@10070 5a3db67b-de53-47b5-99c8-a1c30a6650e2

Former-commit-id: 56a4f5e468f497f32e6037ac4e08b05dffe4bd7f

Former-commit-id: 905cc61ead4df51fdb2b38895af6ebecd105beb5

  1. … 3 more files in changeset.
Updated license headers in core. Related to Issue [WTI-1242]

git-svn-id: https://repos.deltares.nl/repos/WettelijkToetsInstrumentarium/trunk@9490 5a3db67b-de53-47b5-99c8-a1c30a6650e2

Former-commit-id: e7f214adee97782d28ee82f096d8cc27547439e6

Former-commit-id: b339ec31825c8ea8fed91e675069b65afba8433b

  1. … 817 more files in changeset.
Incorporated comments review 1385: (Editorial) - Made the spelling of "Canceled" or "Uncancelable (opposed to "Cancelled" or "Uncancellable") consistent throughout the application.

Note:

"Cancellation" is legit U.S. spelling and therefore unchanged. "Cancelation" is not common and rarely used.

Related to Issue [WTI-490]

git-svn-id: https://repos.deltares.nl/repos/WettelijkToetsInstrumentarium/trunk@7669 5a3db67b-de53-47b5-99c8-a1c30a6650e2

Former-commit-id: 665e259f03237740e63d6441088354043dae52f2

Former-commit-id: 98c98ae04c081843c7bab2c55946744a8d06dad2

  1. … 35 more files in changeset.
Incorporated comments review 1385: - Improved FileImporterBase: -- Use null propagation -- Removed unnecessary setter -- Virtual method to abstract method, fixed affected failing tests - Improved StructuresImporter: -- Used nameof function -- Renamed private field parameter name conform coding standards - Minor editorial changes - Removed redundant aliases

Related to Issue [WTI-490]

git-svn-id: https://repos.deltares.nl/repos/WettelijkToetsInstrumentarium/trunk@7668 5a3db67b-de53-47b5-99c8-a1c30a6650e2

Former-commit-id: ae36ef10b17db21a36e1c42d2fff77760a8665d6

Former-commit-id: 125e339e8568945268976ffc402eba124269dfff

  1. … 8 more files in changeset.
Merged revision(s) 7595-7638 from branches/WTI-490:

Merged revision(s) 7537-7594 from trunk

........

Initial commit of changes from kleijn:

- Removed HandleUserCancellingImport: FileImporter should not decide on its own how to handle Canceled actions. Consequently removed the messages that are generated by these handles

- Added logic to the importers: Cancelling is not possible when putting data on the data model. Action will always execute when it is in this stage

- Added branching paths in the activity: Import() returns false when it has failed or is cancelled

Note: failing tests will be fixed in following commits

........

Fixed tests of the FileImporterBase and Activity:

- Checks on the states are made for the 4 different paths of the Import:

-- Import successful, canceled or not

-- Import not successful, canceled or not

- Moved logging from the activity to the importer

- Added tests to assert mentioned behaviour

........

Fixed tests of the PipingSurfaceLinesCsvImporter:

- Added test to verify behaviour when canceling at the two stages during the import

- Reverted changes related to HandleUserCancellingImport: messages are written by the LogImportCanceledMessage and handled adequately by the base

- Added resource value for the ImportActivity (missing file commit)

........

Fixed tests of the PipingSoilProfilesImporter:

- Added test to verify behaviour when canceling at the three stages during the import

- Reverted changes related to HandleUserCancellingImport: messages are written by the LogImportCanceledMessage and handled adequately by the base

- Cleaned redundant brackets

........

Fixed tests of the StructuresImporter:

- Added test to verify behaviour when canceling at the two stages during the import. Test regarding cancelling while Creating structures is missing

- Reverted changes related to HandleUserCancellingImport: messages are written by the LogImportCanceledMessage and handled adequately by the base

Adjusted test in PipingSoilProfilesImporterTest

- Changed initial value of the result to make clear that the value is set correctly

........

Fixed tests of the ProfilesImporters:

- Added test to verify behaviour when canceling at the two stages during the import. Test regarding cancelling while Creating structures is missing

- Reverted changes related to HandleUserCancellingImport: messages are written by the LogImportCanceledMessage and handled adequately by the base

- Removed obsolete Cancel call in the PipingSoilProfilesImporterTest

........

FileImporters should call Observers in case the import was successfull AND was cancelled at an uncancellable stage.

Note: test is missing to verify this behaviour

........

Fixed tests of the ProfilesImporters:

- Reverted changes related to HandleUserCancellingImport: messages are written by the LogImportCanceledMessage and handled adequately by the base

- Temporarily removed the Cancel tests, because the FeatureBasedMapDataImporter does not have a handle for NotifyProgress. Hence, Cancel method cannot be invoked when Import is running.

........

Fixed tests of the FailureMechanismSectionsImporter:

- Added test to verify behaviour when canceling at the three stages during the import

- Reverted changes related to HandleUserCancellingImport: messages are written by the LogImportCanceledMessage and handled adequately by the base

- Cleaned up tests in the StructuresImporterTest

........

Fixed tests of the ReferenceLineImporter:

- Added test to verify behaviour when canceling at the two stages during the import

- Reverted changes related to HandleUserCancellingImport: messages are written by the LogImportCanceledMessage and handled adequately by the base

........

Related to Issue [WTI-490]

git-svn-id: https://repos.deltares.nl/repos/WettelijkToetsInstrumentarium/trunk@7646 5a3db67b-de53-47b5-99c8-a1c30a6650e2

Former-commit-id: 1c355702dfbd410c7c4733529d8db9e243496eba

Former-commit-id: 75c614862d018947936ef85e3775a125c425c032

  1. … 26 more files in changeset.
Fixed bug when cancelling an import action results in a failed state of the activity: - Activity checks if it wasn't cancelled. If it was, do not set the activity state to failed; otherwise check the result of the import action - Added test to assert the behaviour

Related to Issue [WTI-982]

git-svn-id: https://repos.deltares.nl/repos/WettelijkToetsInstrumentarium/trunk@7509 5a3db67b-de53-47b5-99c8-a1c30a6650e2

Former-commit-id: 130e530ddcc3eea92352e5a4e389a83109f89119

Former-commit-id: ffaf023f8720c812f357f0d8b9fd4e2739c39336

  1. … 1 more file in changeset.
Changed the behavior in the FileImportActivity. If the fileImporter.Import() returns FALSE (failed import), the Activity state will be set to ActivityState.Failed to indicate that the import action was unsuccessful. Related to Issue [WTI-982]

git-svn-id: https://repos.deltares.nl/repos/WettelijkToetsInstrumentarium/trunk@7353 5a3db67b-de53-47b5-99c8-a1c30a6650e2

Former-commit-id: 252f988a74852e53593cd278cf5d3ea682a9fd0e

Former-commit-id: 1782136886b4160733dad2821df1635b8d0d0d5d

  1. … 1 more file in changeset.
* Added standard serialization constructor to all Exception classes. * Explicitly defined culture for string.Format methods. * Replaced IFileImporter.ProgressChanged property to method (recommendation by C# coding conventions) * Renamed classes containing win32.dll invokes to NativeMethods (recommendation by C# coding conventions)

Related to Issue [WTI-931]

git-svn-id: https://repos.deltares.nl/repos/WettelijkToetsInstrumentarium/trunk@6471 5a3db67b-de53-47b5-99c8-a1c30a6650e2

Former-commit-id: 78fae4fb038935c7a58a0fb534baa750b173d589

Former-commit-id: fc7d0938a3677be66218915a3e665a9cc6757df9

  1. … 164 more files in changeset.
Code cleanup. Related to Issue [WTI-935]

git-svn-id: https://repos.deltares.nl/repos/WettelijkToetsInstrumentarium/trunk@6087 5a3db67b-de53-47b5-99c8-a1c30a6650e2

Former-commit-id: 3e612095ba933283dce090635109a6e0a4c5f109

Former-commit-id: c3d5a86f4543e47795b7d4fe327a926294fa8858

  1. … 50 more files in changeset.
* Made StochasticSoilModelContext plural (multiple models!) * Fixed typos. * Improved XML docs. * Improved test coverage. * More relevant functional coverage on ArgumentExceptions. * Minor improvements. * Cleanup. Related to Issue [WTI-497]

git-svn-id: https://repos.deltares.nl/repos/WettelijkToetsInstrumentarium/trunk@5090 5a3db67b-de53-47b5-99c8-a1c30a6650e2

Former-commit-id: f9702e3e2eb4d781a77e9f91539f492d30ee5fa6

Former-commit-id: 3a5bf5a43ce2435d7d999cb0a08f8d8ac716efa1

  1. … 29 more files in changeset.
* FileImporterBase now takes the import targets as constructor argument. ** Removed targetItem argument from IFileImporter.DoPostImportUpdates. * Removed abstract keyword from FileImportBase.ProgressChanged. Related to Issue [WTI-497]

git-svn-id: https://repos.deltares.nl/repos/WettelijkToetsInstrumentarium/trunk@5033 5a3db67b-de53-47b5-99c8-a1c30a6650e2

Former-commit-id: 5a81cae977dee513511a3257dedbeba6df57983a

Former-commit-id: cc770d424d622685b68b2d59f2c6fe21d1cd949c

  1. … 17 more files in changeset.
* Moved filePath argument from IFileImporter.Import to import class constructor. Related to Issue [WTI-497]

git-svn-id: https://repos.deltares.nl/repos/WettelijkToetsInstrumentarium/trunk@5023 5a3db67b-de53-47b5-99c8-a1c30a6650e2

Former-commit-id: 7c21b2cb0e14ce82b05211488ea6dd8b8f3ef8a4

Former-commit-id: 38d3653a05f0b36eb7d42bd93a7b8a1f4b44f453

  1. … 29 more files in changeset.
* Removed unsued properties and methods from IFileImporter. ** Added 'name' argument to FileImportActivity constructor. * Removed 'targetItem' from IFileImport.Import method. * Refactored GuiImportHandler to work with importInfo. Related to Issue [WTI-497]

git-svn-id: https://repos.deltares.nl/repos/WettelijkToetsInstrumentarium/trunk@5016 5a3db67b-de53-47b5-99c8-a1c30a6650e2

Former-commit-id: bdc6bd3e00fb0ed24703b91de78e974e322b8cdf

Former-commit-id: 52be75d229dca9b85b83ee556983e03267adadf1

  1. … 24 more files in changeset.
Merged revision(s) 4850, 4857, 4861 from branches/Release/16_1_1: - Remove strange assembly in resource. - Updated UnusedResourceSearcher.exe Related to Issue WTI 744

........

* Improved resource name to match coding conventions.

Related to Issue WTI 798

........

Use GetFullPath to get a proper path for the SaveFileDialog

........

Merged revision(s) 4837, 4842, 4846 from branches/Release/16_1_1:

Checked VerifyAll for every ReplayAll call.

Whenever encountered: mocking of implementation classes replaced with instances.

Reviewed by: kleijn

........

Added test for RingtoetsPipingSurfaceLineProperties.

........

Corrected documentation.

Related to Issue WTI 737

........

git-svn-id: https://repos.deltares.nl/repos/WettelijkToetsInstrumentarium/trunk@4865 5a3db67b-de53-47b5-99c8-a1c30a6650e2

Former-commit-id: df400900af18215aa45d4c4535e15722f2daea3f

Former-commit-id: 8dccb6e105b15f43d5b135c05c7a3d4b50febed7

  1. … 58 more files in changeset.
Merged revision(s) 4809 from branches/Release/16_1_1: used types instead of classes. ........

git-svn-id: https://repos.deltares.nl/repos/WettelijkToetsInstrumentarium/trunk@4810 5a3db67b-de53-47b5-99c8-a1c30a6650e2

Former-commit-id: 609707e227dfe347a5c146a366a08f545f707a4f

Former-commit-id: 7fbafeaee300c9098f33e9d5c0f15762322a1aaf

  1. … 42 more files in changeset.
Fixing code issues. Related to Issue [WTI-737]

git-svn-id: https://repos.deltares.nl/repos/WettelijkToetsInstrumentarium/trunk@4704 5a3db67b-de53-47b5-99c8-a1c30a6650e2

Former-commit-id: eda341f18b4256e6ec2b5a35abeb824cc3ad066a

Former-commit-id: 4fd7ec51856c1c1ea4c8417287d6a67a6dfd9983

  1. … 53 more files in changeset.
Added license files to all projects except: Ringtoets.Application.SetUp Core.Common.Version Demo.Ringtoets Demo.Ringtoets.Test

Generated license files in projects.

git-svn-id: https://repos.deltares.nl/repos/WettelijkToetsInstrumentarium/trunk@4003 5a3db67b-de53-47b5-99c8-a1c30a6650e2

Former-commit-id: 3acc9d7e6e84815f3fe9024f391e86456c362dc5

Former-commit-id: e0d4c1e5eded874de9d9391f8fe6af15b7369319

  1. … 212 more files in changeset.
* Implemented review suggestions of WTI-Review-369: ** Made Point2D, Point3D and Segment2D more clearly immutable. ** Removed Point2D default constructor (now more consistent with point3D) ** Math2D.SplitLineAtLenghts improvements: *** Reuse of epsilonForComparisons. *** Xml docs. *** variable naming. ** Remove IFileImporter.SupportedItemType and made FileImporterBase generic with type-parameter to use instead. ** Improved test names. ** Optimizations in FailureMechanismSectionsImporter. ** Test coverage for DoubleWithToleranceComparer. ** Improved text resources. Related to Issue [WTI-365]

git-svn-id: https://repos.deltares.nl/repos/WettelijkToetsInstrumentarium/trunk@2406 5a3db67b-de53-47b5-99c8-a1c30a6650e2

Former-commit-id: 9e27e584fe2b6fd5244140250c9ddd9a82bd3e65

Former-commit-id: 12a7c688737048e0aea43a05962cb795dc6fcccb

  1. … 29 more files in changeset.