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); }
public void Setup() { IFeaturesRepository mock = MockServiceGenerator.CreateFeaturesRepositoryMock(); featureService = new FeatureService(mock); }
public void Setup() { IKeywordRepository mock = MockServiceGenerator.CreateKeywordRepository(); keywordService = new KeywordService(mock); }
public void Setup() { ICategoryRepository mock = MockServiceGenerator.CreateCategoryRepository(); categoryService = new CategoryService(mock); }