public CommandMapper ( ICategoryService categoryService, ISubCategoryService subCategoryService, ITypeService typeService, IAttributeService attributeService, ILinkArrowService linkArrowService ) { _categoryService = categoryService; _subCategoryService = subCategoryService; _typeService = typeService; _attributeService = attributeService; _linkArrowService = linkArrowService; }
public void SetUp() { _categoryService = Substitute.For <ICategoryService>(); _subCategoryService = Substitute.For <ISubCategoryService>(); _typeService = Substitute.For <ITypeService>(); _attributeService = Substitute.For <IAttributeService>(); _linkArrowService = Substitute.For <ILinkArrowService>(); _categoryService.AllCategories().Returns(TestData.AllCategories()); _subCategoryService.AllSubCategories().Returns(TestData.AllSubCategories()); _typeService.AllTypes().Returns(TestData.AllTypes()); _attributeService.AllAttributes().Returns(TestData.AllAttributes()); _linkArrowService.AllLinkArrows().Returns(TestData.AllLinkArrows()); _sut = new CardCommandMapper ( _categoryService, _subCategoryService, _typeService, _attributeService, _linkArrowService ); }