Inheritance: DucksboardObjectBase
Exemplo n.º 1
0
        public void Can_update_a_timeline_widget()
        {
            var timeline = new Timeline();
            timeline.Value.Title = "Checkout this Ferrari 458";
            timeline.Value.Image = "http://i.telegraph.co.uk/multimedia/archive/01452/fer1_1452403i.jpg";
            timeline.Value.Content = "Vroooooooom!";
            timeline.Value.Link =
                "http://www.telegraph.co.uk/motoring/car-manufacturers/ferrari/5931105/Ferrari-458-photo-gallery.html";

            var response = Dashboard.Update("** Widget **", timeline);
            response.StatusCode.Should().Be(HttpStatusCode.OK);
        }
Exemplo n.º 2
0
        public void Can_serialize_timeline_objects_properly()
        {
            var target = new Timeline();
            target.Value.Title = "error message";
            target.Value.Image = "http://assets.example.or/error.png";
            target.Value.Content = "All system stop!";
            target.Value.Link = "http://monitoring.example.org/incident/354";

            string result = Serializer.Serialize(target);
            result.Should().NotBeNullOrEmpty();
        }