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 AdaptiveCardInvokeAction() { var type = "myType"; var id = "myId"; var verb = "stupefy"; var data = new { }; var actionSpecs = new AdaptiveCardInvokeAction() { Type = type, Id = id, Verb = verb, Data = data }; Assert.Equal(type, actionSpecs.Type); Assert.Equal(id, actionSpecs.Id); Assert.Equal(verb, actionSpecs.Verb); Assert.Equal(data, actionSpecs.Data); }