Esempio n. 1
0
 public MemberAddressUpdatedHandler(IMapCoordinateService mapCoordinateService,
                                    IRepository <Member> memberRepository,
                                    IAppLogger <MemberAddressUpdatedHandler> logger,
                                    IJsonParserService jsonParserService)
 {
     _mapCoordinateService = mapCoordinateService;
     _memberRepository     = memberRepository;
     _logger            = logger;
     _jsonParserService = jsonParserService;
 }
Esempio n. 2
0
 public MainViewModel()
 {
     StoredRecentProjectsService = new StoredRecentProjectsService();
     _registryService            = new RegistryService();
     _cryptoService                            = new CryptoService(_registryService);
     _fileService                              = new FileService();
     _jsonParserService                        = new JsonParserService();
     _projectManager                           = new ProjectManager();
     EventManager                              = new DomainEventManager();
     EventManager.OnSelectedUseCase           += EventManager_OnSelectedUseCase;
     EventManager.OnGenericFormInputRequested += EventManager_OnGenericFormInputRequested;
     NewActions = _projectManager.ActionManager.Actions.OrderBy(k => k.Name).ToList();
     SetRecentProjects();
     InitializeCommands();
     InitializeMapper();
     NewProject();
 }
Esempio n. 3
0
        public BaseStoredJsonData(IJsonParserService jsonParserService, IFileService fileService, string folderName, string fileNameFormat)
        {
            if (string.IsNullOrEmpty(folderName))
            {
                throw new ArgumentException("message", nameof(folderName));
            }

            if (string.IsNullOrEmpty(fileNameFormat))
            {
                throw new ArgumentException("message", nameof(fileNameFormat));
            }

            JsonParserService = jsonParserService ?? throw new ArgumentNullException(nameof(jsonParserService));
            FileService       = fileService ?? throw new ArgumentNullException(nameof(fileService));
            FolderName        = folderName;
            FileNameFormat    = fileNameFormat;
            CheckIfExistsFolder();
            CheckIfExistsData();
        }
Esempio n. 4
0
 public CreateMainPropertiesWorkflow()
 {
     JsonParserService = new JsonParserService();
 }
Esempio n. 5
0
 public ExecuteRepositoryMethodSentence()
 {
     JsonParserService = new JsonParserService();
 }
Esempio n. 6
0
 public ExecuteUseCaseSentence()
 {
     JsonParserService = new JsonParserService();
 }
Esempio n. 7
0
 public StoredMetadataSchemaService(IJsonParserService jsonParserService, IFileService fileService)
     : base(jsonParserService, fileService, DataFolder, DataFile)
 {
 }
Esempio n. 8
0
 public StoredGenericValuesService(IJsonParserService jsonParserService, IFileService fileService)
     : base(jsonParserService, fileService, DataFolder, DataFileBase)
 {
 }
Esempio n. 9
0
 public JsonParserServiceTests()
 {
     this._jsonParserService = new JsonParserService(this._logger.Object);
 }