Example #1
0
        private void ConvertThroughProto(CreateAndExerciseCommand source)
        {
            Com.Daml.Ledger.Api.V1.CreateAndExerciseCommand protoValue = source.ToProto();
            CreateAndExerciseCommand target = CreateAndExerciseCommand.FromProto(protoValue);

            Assert.True(source == target);
        }
Example #2
0
 public static CreateAndExerciseCommand FromProto(Com.Daml.Ledger.Api.V1.CreateAndExerciseCommand command)
 {
     return(new CreateAndExerciseCommand(Identifier.FromProto(command.TemplateId), Record.FromProto(command.CreateArguments), command.Choice, Value.FromProto(command.ChoiceArgument)));
 }