public void AdaptiveCardInvokeValue() { var action = new AdaptiveCardInvokeAction() { Type = "myType", Id = "actionId", Verb = "stupefy", Data = new { } }; var auth = new AdaptiveCardAuthentication() { Id = "authId", ConnectionName = "myConnectionName", Token = "mySpecialToken", }; var state = "myState"; var invokeValue = new AdaptiveCardInvokeValue() { Action = action, Authentication = auth, State = state, }; Assert.Equal(action, invokeValue.Action); Assert.Equal(auth, invokeValue.Authentication); Assert.Equal(state, invokeValue.State); }
public void AdaptiveCardAuthentication() { var id = "myId"; var connectionName = "myConnectionName"; var token = "mySpecialToken"; var authSpecs = new AdaptiveCardAuthentication() { Id = id, ConnectionName = connectionName, Token = token, }; Assert.Equal(id, authSpecs.Id); Assert.Equal(connectionName, authSpecs.ConnectionName); Assert.Equal(token, authSpecs.Token); }