public void Given_test_multiple_strings_will_return_StringDataPack() { var output = _factory.CreateFrom("test", "ssss"); Assert.IsType <StringArrayDataPack>(output); Assert.Equal($"test{Shield.GlobalConfig.DataPackSettings.DataPackSeparator}ssss", output.GetDataInTransmittableFormat()); }
public Order CreateFromData <TDataType>(string id, string order, string target, Timestamp timestamp, TDataType data) { return(new Order(id, order, target, timestamp, _dataPackFactory.CreateFrom(data))); }