public void ShouldGenerateCQSClass() { var service = new ContractDeploymentCQSMessageGenerator(); var output = service.GenerateClass(abi, byteCode, "StandardToken"); Assert.Equal(expectedClassOutput, output); }
public void ShouldGenerateFunctionOutputDTOFullClass() { var service = new ContractDeploymentCQSMessageGenerator(); var output = service.GenerateFullClass(abi, namespaceName, byteCode, "StandardToken"); Assert.Equal(expectedClassFullOutput, output); }
public GeneratedFile GeneratCQSMessageDeployment() { var cqsGenerator = new ContractDeploymentCQSMessageGenerator(ContractABI.Constructor, GetFullNamespace(CQSNamespace), ByteCode, ContractName, CodeGenLanguage); return(cqsGenerator.GenerateFileContent(GetFullPath(CQSNamespace))); }
public ContractDeploymentCQSMessageGeneratorTests() { var constructorAbi = new ConstructorABI { InputParameters = new[] { new ParameterABI("uint256", "totalSupply") } }; _contractDeploymentCqsMessageGenerator = new ContractDeploymentCQSMessageGenerator( constructorAbi, namespaceName: "DefaultNamespace", byteCode: "0x123456789", contractName: "StandardContract"); }