device-simulation-dotnet/Services.Test
Jill Bender 37a720d044 Add Device Properties logic to internal simulation (#173)
* uncomment UpdateTwinAsync

* add folder for DeviceTwinActor

* Add support classes for DeviceTwinActor to update twin -- uses empty methods

* remove Properties from DeviceStateActor class

* Add InternalDeviceState Class and ability to update twin via callback from javascript

* add placeholders for twin update logic for future pr

* remove eslint jsdoc updates and update javascriptinterpreter tests

* Add new thread for device properties updates

* return null for not implemented methods

* Add Unit Tests for Internal Device State

* Update existing tests with new InternalDeviceState class

* Update scripts with instructions on device property updates

* Fix errors with JS device scripts and readonly dictionary

* revert changes to DeviceTwin class

* Update log messages for readability with timestamp

* Rename logging methods for consistency

* Separate properties and state and remove unused lines

* update comments for twin update branch

* Revert UpdateTwinAsync signature in DeviceClient

* revert UpdateState and JSValueToDictionary to private

* update comment on restoreState in chiller js script

* Update InternalDevicePropertiesTest names

* Consolidated to SmartDictionary class

* remove DevicePropertiesActor, revert DeviceTwin, change terminology from sensors to state

* revert actors logger

* revert simulation runner

* revert simulation runner test

* revert deletion of UpdateReportedProperties.cs

* fix spacing in SimulationRunner

* fix spacing in device twin

* consolidate restore state javascript methods

* add properties to internal script method call

* variable/method naming, whitespace cleanup, add missing method in elevator state script
2018-03-19 15:57:38 -07:00
..
Concurrency Allow to schedule a simulation, defining start and end time (#126) 2017-11-15 13:05:36 -08:00
IntegrationTests Initialize project with files from template 2017-05-25 18:22:07 -07:00
Simulation Add Device Properties logic to internal simulation (#173) 2018-03-19 15:57:38 -07:00
helpers Use custom frequency for telemetry and device state (#141) 2017-11-30 11:58:16 -08:00
DeviceModelsGenerationTest.cs Fix exceptions when override stock device model (#164) 2018-02-12 16:18:56 -08:00
DevicesTest.cs Remove old code used to detect simulation stop via cancellation token (#162) 2018-01-31 19:39:56 -08:00
IotHubConnectionStringManagerTest.cs bugfix: Etag mismatch now returns 409 Conflict instead of 400 Bad Request (#151) 2017-12-13 16:41:38 -08:00
README.md Initialize project with files from template 2017-05-25 18:22:07 -07:00
Services.Test.csproj Reduce the number of threads and improve overall performance (#137) 2017-11-28 00:50:46 -08:00
SimulationsTest.cs Fix for override stock device model with null value (#163) 2018-02-06 10:47:22 -08:00
SmartDictionaryTest.cs Add Device Properties logic to internal simulation (#173) 2018-03-19 15:57:38 -07:00

README.md

Unit Tests and Integration Tests

Guidelines

Conventions

  • For each class create a test class with "Test" suffix.
  • Flag all the tests with a type, e.g. [Fact, Trait(Constants.Type, Constants.UnitTest)]
  • Store Integration Tests under IntegrationTests/ and use the [Fact, Trait(Constants.Type, Constants.IntegrationTest)] attribute