public void GetTabCollectionByKey_ShouldReturnTheCorrectCollection()
        {
            var tabrepository = new TabsRepository(fakeXmlSourceFactory);

            var tabs = tabrepository.GetTabsCollectionByKey(TAB_KEY);

            Assert.That(tabs.Count, Is.EqualTo(3));
        }
        public void GetTabCollectionByKey_ShouldReturnTheRightIDWithRightOrder()
        {
            var tabrepository = new TabsRepository(fakeXmlSourceFactory);

            var tabs = tabrepository.GetTabsCollectionByKey(TAB_KEY);

            Assert.That(tabs[0].Id, Is.EqualTo("engagement-rings"));
            Assert.That(tabs[1].Id, Is.EqualTo("diamod-studs"));
            Assert.That(tabs[2].Id, Is.EqualTo("diamod-pendants"));
        }
        public void GetTabCollectionByKey_ShouldReturnTheRightCaptionWithRightOrder()
        {
            var tabrepository = new TabsRepository(fakeXmlSourceFactory);

            var tabs = tabrepository.GetTabsCollectionByKey(TAB_KEY);

            Assert.That(tabs[0].Caption, Is.EqualTo("Rings"));
            Assert.That(tabs[1].Caption, Is.EqualTo("Studs"));
            Assert.That(tabs[2].Caption, Is.EqualTo("Pendants"));
        }
        public void GetTabCollectionByKey_ShouldThrowAnExceptionIfBadKey()
        {
            //Arrange

            var tabrepository = new TabsRepository(fakeXmlSourceFactory);

            tabrepository.GetTabsCollectionByKey(TAB_KEY + "badkey");

            //Act

            //Assert
        }