public void InValidSearchByPublisher()
        {
            var subject = "TestSubject";

            var catalogAdd     = new Dictionary <string, IList <IBook> >();
            var expectedResult = new List <IBook>();

            catalogAdd.Add(subject, expectedResult);

            var sut = new CatalogService(null, null, catalogAdd);

            sut.SearchBySubject("Test");
        }
        public void InvalidSearchByTitle_Test()
        {
            var title = "TestTitle";

            var catalogAdd     = new Dictionary <string, IList <IBook> >();
            var expectedResult = new List <IBook>();

            catalogAdd.Add(title, expectedResult);

            var sut = new CatalogService(catalogAdd);

            sut.SearchByTitle("Test");
        }
        public void InValidSearchByPublishDate()
        {
            var publishDate = "TestPublishDate";

            var catalogAdd     = new Dictionary <string, IList <IBook> >();
            var expextedResult = new List <IBook>();

            catalogAdd.Add(publishDate, expextedResult);

            var sut = new CatalogService(null, null, null, catalogAdd);

            sut.SearchByPublishDate("TestDate");
        }
        public void SearchInCatalogByTitle_Test()
        {
            var title = "TestTitle";

            var catalogAdd     = new Dictionary <string, IList <IBook> >();
            var expectedResult = new List <IBook>();

            catalogAdd.Add(title, expectedResult);

            var sut          = new CatalogService(catalogAdd);
            var actualResult = sut.SearchByTitle(title);

            Assert.AreEqual(expectedResult, actualResult);
        }
        public void ValidSearchByPublisher()
        {
            var subject = "TestPublisher";

            var catalogAdd     = new Dictionary <string, IList <IBook> >();
            var expectedResult = new List <IBook>();

            catalogAdd.Add(subject, expectedResult);

            var sut          = new CatalogService(null, null, catalogAdd);
            var actualResult = sut.SearchBySubject(subject);

            Assert.AreEqual(expectedResult, actualResult);
        }
        public void InValidSearchByAuthgor()
        {
            var author = "TestAuthor";

            var catalogAdd = new Dictionary <string, IList <IBook> >();

            var expectedResult = new List <IBook>();

            catalogAdd.Add(author, expectedResult);

            var sut = new CatalogService(null, catalogAdd);

            sut.SearchByAuthor("Test");
        }
        public void ValidSearchByPublishDate()
        {
            var publishDate = "publishDateTest";

            var catalogAdd     = new Dictionary <string, IList <IBook> >();
            var expectedResult = new List <IBook>();

            catalogAdd.Add(publishDate, expectedResult);

            var sut          = new CatalogService(null, null, null, catalogAdd);
            var actualResult = sut.SearchByPublishDate(publishDate);

            Assert.AreEqual(expectedResult, actualResult);
        }
        public void ValidSearchByAuthor_Test()
        {
            var author = "TestAuthor";

            var catalogAdd = new Dictionary <string, IList <IBook> >();

            var expectedResult = new List <IBook>();

            catalogAdd.Add(author, expectedResult);

            var sut          = new CatalogService(null, catalogAdd);
            var actualResult = sut.SearchByAuthor(author);

            Assert.AreEqual(expectedResult, actualResult);
        }