public void Test_ChannelEndpoint_NoSchools_Returns_Contents() { // Arrange _sut = new ChannelsController(mockSchoolsService.Object); // Act var result = _sut.GetChannels("http://noschools/"); // Assert Assert.IsType <NoContentResult>(result); Assert.Equal(0, _sut.ModelState.ErrorCount); }
public void Test_ChannelEndpoint_WithUrlNotbackslash_Returns_OK() { // Arrange _sut = new ChannelsController(mockSchoolsService.Object); // Act var result = _sut.GetChannels("http://localhost"); // Assert Assert.IsType <OkObjectResult>(result); Assert.Equal(0, _sut.ModelState.ErrorCount); }