Skip to content

Commit

Permalink
Allow sending all data typs on interfase
Browse files Browse the repository at this point in the history
Signed-off-by: Osman Hadzic <osman.hadzic@secomind.com>
  • Loading branch information
osmanhadzic committed Dec 4, 2023
1 parent b0ae4f9 commit 6a7d4eb
Showing 1 changed file with 1 addition and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -119,10 +119,7 @@ public async void AggregateFromServerToDevice()
astarteServerAggregateDatastream.AddListener(this);

Dictionary<string, object> data = astarteMockDevice.MockDataDictionary;

data.Remove("datetime_endpoint");
data.Remove("datetimearray_endpoint");


Thread.Sleep(500);

await astarteHttpRequestTest
Expand All @@ -140,13 +137,10 @@ public void ValueReceived(AstarteAggregateDatastreamEvent e)
dynamic jsonInfo = JsonConvert.SerializeObject(e.GetValues());

Dictionary<string, object> data = astarteMockDevice.MockDataDictionary;
data["datetime_endpoint"] = new DateTime();
data["datetimearray_endpoint"] = new DateTime[0];

astarteAggregateData = JsonConvert.DeserializeObject
<MockDataDevice>(jsonInfo.ToString());


Assert.True(AstarteMockDevice.MockData.Equals(astarteAggregateData));
}
}
Expand Down

0 comments on commit 6a7d4eb

Please sign in to comment.