public async Task TestGetChannels() { var controller = new ChannelsController(channels.Object, musics.Object); var result = await controller.GetChannels(0, 10); Assert.AreEqual(10, result.Count); }
public void Setup() { controller = new ChannelsController(channels.Object, musics.Object); controller.Request = new HttpRequestMessage(); controller.Request.SetConfiguration(new HttpConfiguration()); }
public async Task TestGetChannel() { var controller = new ChannelsController(channels.Object, musics.Object); var result = await controller.GetChannel(10); Assert.IsNotNull(result); }