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(); }
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); }