This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| #Rm : deletes folder | |
| # -R : deletes directory | |
| # -rf : deletes directory if exists, if not, ignores it | |
| # mobile.iOS | |
| Rm -rf -R ~/Documents/GitHub/Platform/src/mobile.iOS/bin || true | |
| Rm -rf -R ~/Documents/GitHub/Platform/src/mobile.iOS/obj || true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "name": "finlocker-pfm", | |
| "version": "0.1.0", | |
| "license": "UNLICENSED", | |
| "scripts": { | |
| "ng": "ng", | |
| "start": "ng serve --proxy-config proxy.conf.json --watch -o", | |
| "build": "ng build", | |
| "test": "ng test --watch", | |
| "test:production": "ng test --watch=false --prod", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using Finlocker.TaxReturn.StatusHandler.Services; | |
| using FinLocker.TaxReturn; | |
| using FinLocker.TaxReturn.Api.Helpers.Interfaces; | |
| using FinLocker.TaxReturn.Logging; | |
| using Microsoft.Extensions.Configuration; | |
| using Microsoft.Extensions.DependencyInjection; | |
| using Microsoft.Extensions.Logging; | |
| using System; | |
| using System.IO; | |
| using System.Threading.Tasks; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var mockTaxDocumentForm = new Mock<TaxDocumentForm>(null, null); | |
| mockTaxDocumentForm = GetMockValidTaxDocumentForm(); | |
| var calls = 0; | |
| var mock = new Mock<ITaxDocumentService>(); | |
| mock.Setup(m => m.Process(mockTaxDocumentForm.Object)) | |
| .Callback(() => calls++); | |
| var methodCall = mock.Object; | |
| var result = methodCall; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| namespace PFMGoalsNotificationTests | |
| { | |
| [TestClass] | |
| public class GoalNotificationServiceTests | |
| { | |
| private Mock<ILogger> _mockLogger; | |
| private Mock<IFinlockerDataProvider> _dataProvider; | |
| private Mock<INotificationService> _mockNotificationService; | |
| private Mock<IGoalService> _mockGoalService; | |
| private Mock<IGoalSnapshotService> _mockSnapshotService; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { ComponentFixture, TestBed } from '@angular/core/testing'; | |
| import { NO_ERRORS_SCHEMA } from '@angular/core'; | |
| import { MAT_DIALOG_DATA, MatDialogRef } from '@angular/material'; | |
| // RXJS | |
| import { of } from 'rxjs/internal/observable/of'; | |
| // Components | |
| import { DocumentsFolderUploadComponent } from './documents-folder-upload.component'; | |
| import { FolderService } from '../../../shared-services/services/folder.service'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { TransactionCategoryService } from '../../../shared-services/services/transaction-category.service'; | |
| import { BudgetsUpdaterComponent } from './budgets-updater.component'; | |
| import { MatDialogRef } from '@angular/material'; | |
| import { InstitutionService } from '../../../shared-services/services/institution.service'; | |
| import { FinancialAccountService } from '../../../shared-services/services/financial-account.service'; | |
| import { ChangeDetectorRef } from '@angular/core'; | |
| import { BudgetService } from '../../../shared-services/services/budget.service'; | |
| import { Budget } from '../../../models/budgets/budget.model'; | |
| import { of } from 'rxjs'; | |
| import { TransactionSubcategory } from '../../../models/transactions/transaction-subcategory.model'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { Directive, EventEmitter, HostBinding, HostListener, Input, Output } from '@angular/core'; | |
| import { MatDialog } from '@angular/material'; | |
| import { Observable, Observer } from 'rxjs'; | |
| // Components | |
| import { DocumentsEditorComponent } from '../documents-editor/documents-editor.component'; | |
| import { FileEditorComponent } from '../file-editor/file-editor.component'; | |
| // Services | |
| import { DocumentService } from '../../../shared-services/services/document.service'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { FileDropUploadComponent } from './file-drop-upload.component'; | |
| describe('FileDropUploadComponent', () => { | |
| let component: FileDropUploadComponent; | |
| beforeEach(() => { | |
| component = new FileDropUploadComponent(); | |
| }); | |
| it('should create', () => { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| .container { | |
| min-width: 600px; | |
| max-width: 600px; | |
| } | |
| .dialog-title { | |
| margin-bottom: 0; | |
| display: flex; | |
| } |