public void Start_throws_an_error_when_peer_address_contains_a_protocol()
        {
            var options = Options.Create(new ChaincodeSettings
            {
                CORE_PEER_ADDRESS = "grpcs://example.test"
            });

            var shim = new Shim(options, new Mock <ILogger <Shim> >().Object, new Mock <IHandlerFactory>().Object);

            shim.Awaiting(m => m.Start())
            .Should().Throw <Exception>("Peer Address should not contain any protocol information.");
        }
        public void Start_throws_an_error_when_peer_address_port_is_missing()
        {
            var options = Options.Create(new ChaincodeSettings
            {
                CORE_PEER_ADDRESS = "example.test"
            });

            var shim = new Shim(options, new Mock <ILogger <Shim> >().Object, new Mock <IHandlerFactory>().Object);

            shim.Awaiting(m => m.Start())
            .Should().Throw <Exception>("Please provide peer address in the format of host:port");
        }