public void ValidateInitalData() { // Arrange objChannelOnboardingController = new ChannelOnboardingController(applicationDbContext); // Act var data = objChannelOnboardingController.Get(); // Assert Assert.IsNotNull(data); Assert.AreEqual("NC.News.Communications", data.FirstOrDefault().sourceName); }
public void ValidateNewChannelOnboardingTest() { // Arrange objChannelOnboardingController = new ChannelOnboardingController(applicationDbContext); // Act var response = objChannelOnboardingController.Post(new NC.NEWS.Domain.ChannelOnboard { sourceName = "google" }); var getallChannels = objChannelOnboardingController.Get(); // Assert Assert.IsNotNull(response); Assert.AreEqual("google", response.ToString()); Assert.NotZero(getallChannels.Count()); Assert.AreEqual(2, getallChannels.Count()); }