public CyberPlatGateIntegrationalTests() { var manager = new CyberPlatSignatureManager(TestConfigurations.ManagerConfiguration); var client = new CyberPlatHttpClient(manager, TestConfigurations.ClientConfiguration); m_Gate = new CyberPlatGate(client, TestConfigurations.GateConfiguration); }
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>(); } }