public void SubLogReadToGrid_ForEmail_ReturnActionResult() { // Arrange InitializeLog(); var controller = new SubscriberController(); // Act var result = controller.SubLogReadToGrid(new DataSourceRequest(), EmailId, GroupId, PageNumber, PageSize) as JsonResult; // Assert result.ShouldSatisfyAllConditions( () => result.ShouldNotBeNull(), () => result.Data.ShouldNotBeNull()); }