public void GetNotFoundTouristSpotSearchByCategoriesAndRegion()
        {
            List <TouristSpot> listOfTouristSpotSearched = new List <TouristSpot>()
            {
                touristSpot1, touristSpot2
            };
            List <Guid> listOfCategoriesToSearch = new List <Guid>()
            {
                category1.Id, category2.Id
            };

            var touristSpotRepositoryMock = new Mock <ITouristSpotRepository>(MockBehavior.Strict);

            touristSpotRepositoryMock.Setup(m => m.GetTouristSpotsByCategoriesAndRegion(listOfCategoriesToSearch, region1.Id)).Throws(new ClientException());

            var touristSpotLogic = new TouristSpotManagement(touristSpotRepositoryMock.Object);

            var result = touristSpotLogic.GetTouristSpotsByCategoriesAndRegion(listOfCategoriesToSearch, region1.Id);
        }
        public void GetValidTouristSpotSearchByCategoriesAndRegion()
        {
            List <TouristSpot> listOfTouristSpotSearched = new List <TouristSpot>()
            {
                touristSpot1
            };
            List <Guid> listOfCategoriesToSearch = new List <Guid>()
            {
                category1.Id, category2.Id
            };

            var touristSpotRepositoryMock = new Mock <ITouristSpotRepository>(MockBehavior.Strict);

            touristSpotRepositoryMock.Setup(m => m.GetTouristSpotsByCategoriesAndRegion(listOfCategoriesToSearch, region1.Id)).Returns(listOfTouristSpotSearched);

            var touristSpotLogic = new TouristSpotManagement(touristSpotRepositoryMock.Object);

            var result = touristSpotLogic.GetTouristSpotsByCategoriesAndRegion(listOfCategoriesToSearch, region1.Id);

            touristSpotRepositoryMock.VerifyAll();
            Assert.AreEqual(touristSpot1, result[0]);
        }