C# Class BudgetAnalyser.Engine.Services.BudgetMaintenanceService

Inheritance: IBudgetMaintenanceService, ISupportsModelPersistence
Exibir arquivo Open project: Benrnz/BudgetAnalyser

Public Methods

Method 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

Method Description
CloneBudgetExpenses ( BudgetModel source ) : IEnumerable
CloneBudgetIncomes ( BudgetModel source ) : IEnumerable
CreateNewBudgetCollection ( ) : void
EnsureAllBucketsUsedAreInBucketRepo ( ) : void
UpdateServiceMonitor ( ) : void

Method Details

BudgetMaintenanceService() public method

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

CloneBudgetModel() public method

public CloneBudgetModel ( BudgetModel sourceBudget, System.DateTime newBudgetEffectiveFrom ) : BudgetModel
sourceBudget BudgetAnalyser.Engine.Budget.BudgetModel
newBudgetEffectiveFrom System.DateTime
return BudgetAnalyser.Engine.Budget.BudgetModel

Close() public method

public Close ( ) : void
return void

CreateAsync() public method

public CreateAsync ( ApplicationDatabase applicationDatabase ) : System.Threading.Tasks.Task
applicationDatabase BudgetAnalyser.Engine.Persistence.ApplicationDatabase
return System.Threading.Tasks.Task

LoadAsync() public method

public LoadAsync ( ApplicationDatabase applicationDatabase ) : System.Threading.Tasks.Task
applicationDatabase BudgetAnalyser.Engine.Persistence.ApplicationDatabase
return System.Threading.Tasks.Task

SaveAsync() public method

public SaveAsync ( ApplicationDatabase applicationDatabase ) : System.Threading.Tasks.Task
applicationDatabase BudgetAnalyser.Engine.Persistence.ApplicationDatabase
return System.Threading.Tasks.Task

SavePreview() public method

public SavePreview ( ) : void
return void

UpdateIncomesAndExpenses() public method

public UpdateIncomesAndExpenses ( [ model, IEnumerable allIncomes, IEnumerable allExpenses ) : void
model [
allIncomes IEnumerable
allExpenses IEnumerable
return void

ValidateModel() public method

public ValidateModel ( StringBuilder messages ) : bool
messages StringBuilder
return bool