public void BlockSignerWithoutRandomSeedTest(Ksi ksi)
        {
            BlockSigningException ex = Assert.Throws <BlockSigningException>(delegate
            {
                BlockSigner blockSigner = new BlockSigner(GetHttpKsiService(), true, null);
            });

            Assert.That(ex.Message, Does.StartWith("Random seed cannot be null when using blinding masks"), "Unexpected exception message");
        }
        public void BlockSignerCannotAddHashAfterSignedTest(Ksi ksi)
        {
            BlockSigner blockSigner = new BlockSigner(GetHttpKsiService());

            blockSigner.Add(new DataHash(Base16.Decode("01580192B0D06E48884432DFFC26A67C6C685BEAF0252B9DD2A0B4B05D1724C5F2")));
            blockSigner.Sign();

            BlockSigningException ex = Assert.Throws <BlockSigningException>(delegate
            {
                blockSigner.Add(new DataHash(Base16.Decode("01580192B0D06E48884432DFFC26A67C6C685BEAF0252B9DD2A0B4B05D1724C5F2")));
            });

            Assert.That(ex.Message, Does.StartWith("Signing process is started. Cannot add new items."), "Unexpected exception message");
        }