public async Task ShouldDeployMultiplierContract() { int stateId = await GanacheManager.SaveState(); MultiplyContractService multiplyContractService = await MultiplyContractService.DeployContractAndGetServiceAsync ( GanacheManager.Web3, new MultiplyContractDeployment { FromAddress = EthereumSettings.TestAccountAddress, Multiplier = 7, } ); multiplyContractService.ShouldNotBeNull(); await GanacheManager.RevertState(); }
public MultiplierTests(TestFixture aTestFixture) { GanacheManager = aTestFixture.GanacheManager; MultiplyContractService = aTestFixture.ServiceProvider.GetService <MultiplyContractService>(); EthereumSettings = aTestFixture.ServiceProvider.GetService <EthereumSettings>(); }