Ejemplo n.º 1
0
        public async Task TestGetChannels()
        {
            var controller = new ChannelsController(channels.Object, musics.Object);

            var result = await controller.GetChannels(0, 10);

            Assert.AreEqual(10, result.Count);
        }
Ejemplo n.º 2
0
 public void Setup()
 {
     controller = new ChannelsController(channels.Object, musics.Object);
     controller.Request = new HttpRequestMessage();
     controller.Request.SetConfiguration(new HttpConfiguration());
 }
Ejemplo n.º 3
0
        public async Task TestGetChannel()
        {
            var controller = new ChannelsController(channels.Object, musics.Object);

            var result = await controller.GetChannel(10);

            Assert.IsNotNull(result);
        }