Exemplo n.º 1
0
        public void ArePluginsReturned()
        {
            var result       = _subject.Get();
            var resultObject = result.Should().BeOfType <OkObjectResult>().Subject.Value;
            var list         = resultObject.Should().BeOfType <List <EmbyPluginViewModel> >().Subject;

            list.Count.Should().Be(2);
            list[0].Name.Should().Be(_plugins[0].Name);
            list[1].Name.Should().Be(_plugins[1].Name);
            _pluginServiceMock.Verify(x => x.GetInstalledPlugins(), Times.Once);
        }