public CommandHandlerCrudDecorator(CommandHandlerTemplate template, IApplication application) { _template = template; _application = application; //if (File.Exists(_template.GetMetadata().GetFilePath())) //{ // return; //} _implementationStrategy = new ICrudImplementationStrategy[] { new CreateImplementationStrategy(_template, _application, _application.MetadataManager), new UpdateImplementationStrategy(_template, _application, _application.MetadataManager), new DeleteImplementationStrategy(_template, _application, _application.MetadataManager), }.SingleOrDefault(x => x.IsMatch()); }
public UpdateImplementationStrategy(CommandHandlerTemplate template, IApplication application, IMetadataManager metadataManager) { _template = template; _application = application; _metadataManager = metadataManager; }