예제 #1
0
        public void Setup()
        {
            var itemRepositoryMock     = MockServiceGenerator.CreateItemRepositoryMock();
            var pictureRepositoryMock  = MockServiceGenerator.CreatePictureRepositoryMock();
            var featureRepositoryMock  = MockServiceGenerator.CreateFeaturesRepositoryMock();
            var keywordsRepositoryMock = MockServiceGenerator.CreateKeywordRepository();
            var categoryRepositoryMock = MockServiceGenerator.CreateCategoryRepository();

            featureService = new FeatureService(featureRepositoryMock);
            var keywordService  = new KeywordService(keywordsRepositoryMock);
            var categoryService = new CategoryService(categoryRepositoryMock);

            itemService = new ItemService(itemRepositoryMock, featureService, keywordService, categoryService, pictureRepositoryMock);
        }
예제 #2
0
        public void Setup()
        {
            IFeaturesRepository mock = MockServiceGenerator.CreateFeaturesRepositoryMock();

            featureService = new FeatureService(mock);
        }
예제 #3
0
        public void Setup()
        {
            IKeywordRepository mock = MockServiceGenerator.CreateKeywordRepository();

            keywordService = new KeywordService(mock);
        }
        public void Setup()
        {
            ICategoryRepository mock = MockServiceGenerator.CreateCategoryRepository();

            categoryService = new CategoryService(mock);
        }