Exemple #1
0
        public CyberPlatGateIntegrationalTests()
        {
            var manager = new CyberPlatSignatureManager(TestConfigurations.ManagerConfiguration);
            var client  = new CyberPlatHttpClient(manager, TestConfigurations.ClientConfiguration);

            m_Gate = new CyberPlatGate(client, TestConfigurations.GateConfiguration);
        }
Exemple #2
0
        public void InitializingTest(CyberPlatHttpClientConfiguration conf, bool shouldSucceed)
        {
            Action action = () =>
            {
                var client = new CyberPlatHttpClient(m_ManagerMock, conf);
            };

            if (shouldSucceed)
            {
                action.ShouldNotThrow <ArgumentException>();
            }
            else
            {
                action.ShouldThrow <ArgumentException>();
            }
        }