コード例 #1
0
        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());
        }
コード例 #2
0
 public Order CreateFromData <TDataType>(string id, string order, string target, Timestamp timestamp, TDataType data)
 {
     return(new Order(id, order, target, timestamp, _dataPackFactory.CreateFrom(data)));
 }