コード例 #1
0
        public void When_querying_videos_it_should_not_throw()
        {
            // Arrange
            var service = new WebinarService();
            var keyword = "Raven";
            // Act
            Action method = () => service.FindWebinars(keyword);

            // Assert
            method.ShouldNotThrow();
        }
コード例 #2
0
        public void When_querying_videos_it_should_succeed()
        {
            // Arrange
            var service = new WebinarService();
            var keyword = "Raven";

            // Act
            Func<IList<Webinar>> method = () => service.FindWebinars(keyword);
            var webinars = method.Invoke();

            // Assert
            webinars.Count.Should().BeGreaterOrEqualTo(1);
        }