public UploadEnpoint(IHttpResponseFactory httpResponseFactory, IConfigurationModelRegistry configCollection, ICommandBus commandBus, IConfigurationClientService configClientService, IUploadToEditorModelMapper uploadToEditorModelMapper) { this.httpResponseFactory = httpResponseFactory; this.configCollection = configCollection; this.commandBus = commandBus; this.configClientService = configClientService; this.uploadToEditorModelMapper = uploadToEditorModelMapper; }
public UploadToEditorModelMapperTests() { configurationEditModelMapper = new Mock <IConfigurationEditModelMapper>(); uploadMapper = new Mock <IConfigurationUploadMapper>(); target = new UploadToEditorModelMapper(configurationEditModelMapper.Object, uploadMapper.Object); inputedId = new ConfigurationIdentity(new ConfigurationClient { ClientId = Guid.NewGuid().ToString() }, new Version(1, 0)); model = new ConfigurationModel <SimpleConfig, SimpleConfigSet>("Test", c => c.Config, (cs, c) => cs.Config = c); }