public void OBOLogoutTest() { SymConfig symConfig = new SymConfig(); SymConfigLoader symConfigLoader = new SymConfigLoader(); symConfig = symConfigLoader.loadFromFile("C:/Users/Michael/Documents/Visual Studio 2017/Projects/apiClientDotNet/apiClientDotNetTest/Resources/testConfig3.json"); SymOBOAuth oboAuth = new SymOBOAuth(symConfig); oboAuth.sessionAppAuthenticate(); SymOBOUserAuth auth = oboAuth.getUserAuth("*****@*****.**"); SymOBOClient client = SymOBOClient.initOBOClient(symConfig, auth); OutboundMessage message = new OutboundMessage(); message.message = "<messageML>Hello Alexa</messageML>"; apiClientDotNet.Models.Stream stream = new apiClientDotNet.Models.Stream(); stream.streamId = "IzgD3nNbpoaNJ6_To7Ds0n___pmCBYMrdA"; MessageClient messageClient = new MessageClient(client); InboundMessage resp = messageClient.sendMessage(stream.streamId, message, false); auth.logout(); //Assert.IsTrue(resp.message != null); }
public void OBOLogoutTest() { SymOBOAuth oboAuth = new SymOBOAuth(symConfig); oboAuth.sessionAppAuthenticate(); SymOBOUserAuth auth = oboAuth.getUserAuth("*****@*****.**"); SymOBOClient client = SymOBOClient.initOBOClient(symConfig, auth); OutboundMessage message = new OutboundMessage(); message.message = "<messageML>Hello Alexa</messageML>"; apiClientDotNet.Models.Stream stream = new apiClientDotNet.Models.Stream(); stream.streamId = "IzgD3nNbpoaNJ6_To7Ds0n___pmCBYMrdA"; MessageClient messageClient = new MessageClient(client); InboundMessage resp = messageClient.sendMessage(stream.streamId, message, false); auth.logout(); //Assert.IsTrue(resp.message != null); }