public Form Show() { var data = new Dictionary <string, object>(); var stateRepository = new SQLServerWarehouseStateRepository(); var warehouseAddressStateRepository = new SQLServerWarehouseAddressStateRepository(); var warehouseStates = stateRepository.SearchAll(); var warehouseAddressStates = warehouseAddressStateRepository.SearchAll(); var gtDepartments = new List <string>(); var states = new List <string>(); var repository = new SQLServerWarehouseRepository(); var creator = new WarehouseCreator(repository); var handler = new WarehouseCommandHandler(creator); foreach (var item in warehouseAddressStates) { gtDepartments.Add(item.Name); } foreach (var item in warehouseStates) { states.Add(item.Name); } data.Add("warehousesAddressStates", gtDepartments); data.Add("warehousesStates", states); data.Add("handler", handler); createWarehosue = new CreateWarehouse(data); return(createWarehosue); }
public BranchEnvCreator(StorageCfg storageCfg, VersionInfo versionInfo, WarehouseCreator whCreator) { StorageCfg = storageCfg; VersionInfo = versionInfo; WhCreator = whCreator; }
public BranchEnvCreator(VersionInfo versionInfo, WarehouseCreator whCreator, BlobStores stores) { VersionInfo = versionInfo; WhCreator = whCreator; Stores = stores; }