public void When_GetById_Should_Return_Channel() { var manager = new ChannelsManager(_channelServiceMock.Object, _deviceRepositoryMock.Object); var result = manager.GetById("1"); Assert.IsNotNull(result); Assert.IsTrue(result.Name == "channel1"); }