private void InitializeFakeObjects() { _categoryRepositoryStub = new Mock <IShopCategoryRepository>(); _shopRepositoryStub = new Mock <IShopRepository>(); _mapRepositoryStub = new Mock <IMapRepository>(); _validator = new AddShopValidator(_categoryRepositoryStub.Object, _shopRepositoryStub.Object, _mapRepositoryStub.Object); }
public AddShopOperation(IResponseBuilder responseBuilder, IRequestBuilder requestBuilder, IControllerHelper controllerHelper, IAddShopValidator addShopValidator, IHostingEnvironment env, ICommandSender commandSender) { _responseBuilder = responseBuilder; _requestBuilder = requestBuilder; _controllerHelper = controllerHelper; _addShopValidator = addShopValidator; _env = env; _commandSender = commandSender; }