private void ConvertThroughProto(CreateAndExerciseCommand source) { Com.DigitalAsset.Ledger.Api.V1.CreateAndExerciseCommand protoValue = source.ToProto(); CreateAndExerciseCommand target = CreateAndExerciseCommand.FromProto(protoValue); Assert.IsTrue(source == target); }
public static CreateAndExerciseCommand FromProto(Com.DigitalAsset.Ledger.Api.V1.CreateAndExerciseCommand command) { return(new CreateAndExerciseCommand(Identifier.FromProto(command.TemplateId), Record.FromProto(command.CreateArguments), command.Choice, Value.FromProto(command.ChoiceArgument))); }