C# Class BudgetAnalyser.Engine.Services.BudgetMaintenanceService

Inheritance: IBudgetMaintenanceService, ISupportsModelPersistence
Afficher le fichier Open project: Benrnz/BudgetAnalyser

Méthodes publiques

Méthode Description
BudgetMaintenanceService ( [ budgetRepository, [ bucketRepo, [ logger, [ monitorableDependencies ) : System

Initializes a new instance of the BudgetMaintenanceService class.

CloneBudgetModel ( BudgetModel sourceBudget, System.DateTime newBudgetEffectiveFrom ) : BudgetModel
Close ( ) : void
CreateAsync ( ApplicationDatabase applicationDatabase ) : System.Threading.Tasks.Task
LoadAsync ( ApplicationDatabase applicationDatabase ) : System.Threading.Tasks.Task
SaveAsync ( ApplicationDatabase applicationDatabase ) : System.Threading.Tasks.Task
SavePreview ( ) : void
UpdateIncomesAndExpenses ( [ model, IEnumerable allIncomes, IEnumerable allExpenses ) : void
ValidateModel ( StringBuilder messages ) : bool

Private Methods

Méthode Description
CloneBudgetExpenses ( BudgetModel source ) : IEnumerable
CloneBudgetIncomes ( BudgetModel source ) : IEnumerable
CreateNewBudgetCollection ( ) : void
EnsureAllBucketsUsedAreInBucketRepo ( ) : void
UpdateServiceMonitor ( ) : void

Method Details

BudgetMaintenanceService() public méthode

Initializes a new instance of the BudgetMaintenanceService class.
budgetRepository
public BudgetMaintenanceService ( [ budgetRepository, [ bucketRepo, [ logger, [ monitorableDependencies ) : System
budgetRepository [
bucketRepo [
logger [
monitorableDependencies [
Résultat System

CloneBudgetModel() public méthode

public CloneBudgetModel ( BudgetModel sourceBudget, System.DateTime newBudgetEffectiveFrom ) : BudgetModel
sourceBudget BudgetAnalyser.Engine.Budget.BudgetModel
newBudgetEffectiveFrom System.DateTime
Résultat BudgetAnalyser.Engine.Budget.BudgetModel

Close() public méthode

public Close ( ) : void
Résultat void

CreateAsync() public méthode

public CreateAsync ( ApplicationDatabase applicationDatabase ) : System.Threading.Tasks.Task
applicationDatabase BudgetAnalyser.Engine.Persistence.ApplicationDatabase
Résultat System.Threading.Tasks.Task

LoadAsync() public méthode

public LoadAsync ( ApplicationDatabase applicationDatabase ) : System.Threading.Tasks.Task
applicationDatabase BudgetAnalyser.Engine.Persistence.ApplicationDatabase
Résultat System.Threading.Tasks.Task

SaveAsync() public méthode

public SaveAsync ( ApplicationDatabase applicationDatabase ) : System.Threading.Tasks.Task
applicationDatabase BudgetAnalyser.Engine.Persistence.ApplicationDatabase
Résultat System.Threading.Tasks.Task

SavePreview() public méthode

public SavePreview ( ) : void
Résultat void

UpdateIncomesAndExpenses() public méthode

public UpdateIncomesAndExpenses ( [ model, IEnumerable allIncomes, IEnumerable allExpenses ) : void
model [
allIncomes IEnumerable
allExpenses IEnumerable
Résultat void

ValidateModel() public méthode

public ValidateModel ( StringBuilder messages ) : bool
messages StringBuilder
Résultat bool