public void UpdateStateDtoModelTests() { ValidatorStateDto state = new ValidatorStateDto(); UpdateStateDto ruf = new UpdateStateDto { ValidatorState = state }; ruf.ValidatorState.Should().Be(state); }
public void ValidatorStateDtoModelTests() { ValidatorStateDto vsDto = new ValidatorStateDto { IsSigning = true, DockerSha = new byte[] { 0x0, 0x1, 0x2 }, ChainSpecSha = new byte[] { 0x4, 0x5, 0x6 }, ChainSpecUrl = "http://foo.bar", DockerName = "parity/parity:v2.3.4", UpdateConfirmed = BigInteger.One, UpdateIntroduced = BigInteger.MinusOne }; vsDto.IsSigning.Should().Be(true); vsDto.DockerSha.Should().ContainInOrder(new byte[] { 0x0, 0x1, 0x2 }); vsDto.ChainSpecSha.Should().ContainInOrder(new byte[] { 0x4, 0x5, 0x6 }); vsDto.ChainSpecUrl.Should().Be("http://foo.bar"); vsDto.DockerName.Should().Be("parity/parity:v2.3.4"); vsDto.UpdateConfirmed.Should().Be(BigInteger.One); vsDto.UpdateIntroduced.Should().Be(BigInteger.MinusOne); }