public async Task SimpleCustomEventTaskTestComplexType() { var sender = new Sender() { PhotoUrl = "http://graph.facebook.com/100002990175600/picture?type=square", ProfileUrl = "http://www.facebook.com/profile.php?id=100002990175600", LoginProvider = "Facebook", Name = "Jessie Eizenberg", IsSelf = true }; var comment = new Comment() { Id = "2a9f579657c044f380a4a0e1b6fc2af8", CommentText = "This is a comment!", Sender = sender, ThreadId = string.Empty }; var eventData = new EventData() { CategoryId = "17235654", StreamId = "strm1", CommentId = "2a9f579657c044f380a4a0e1b6fc2af8", Comment = comment }; var newEvent = new Event() { Name = "newComment", EventData = new List<EventData>() {eventData}, Nonce = "b7a00b88e1b9469599e5f53049eb1b6d", Timestamp = "1332079751", Signature = "gCLCNiNxt8xGkzqzP7MugKLv2Ak" }; await _runner.SimpleCustomEventTask(newEvent); }
protected bool Equals(Event other) { return string.Equals(Name, other.Name) && EventData.SequenceEqual(other.EventData) && string.Equals(Nonce, other.Nonce) && string.Equals(Timestamp, other.Timestamp) && string.Equals(Signature, other.Signature); }