Esempio n. 1
0
        private void ConvertThroughProto(ContractId source)
        {
            Com.DigitalAsset.Ledger.Api.V1.Value protoValue = source.ToProto();
            var maybe = Value.FromProto(protoValue).AsContractId();

            Assert.AreEqual(typeof(Some <ContractId>), maybe.GetType());
            Assert.IsTrue(source == (Some <ContractId>)maybe);
        }
Esempio n. 2
0
        private void ConvertThroughProto(ContractId source)
        {
            Com.Daml.Ledger.Api.V1.Value protoValue = source.ToProto();
            var maybe = Value.FromProto(protoValue).AsContractId();

            maybe.Should().BeOfType <Some <ContractId> >();
            Assert.True(source == (Some <ContractId>)maybe);
        }