C# Класс BudgetAnalyser.Engine.Services.TransactionRuleService

Наследование: ITransactionRuleService, ISupportsModelPersistence
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
Close ( ) : void
CreateAsync ( ApplicationDatabase applicationDatabase ) : System.Threading.Tasks.Task
CreateNewRule ( string bucketCode, string description, string references, string transactionTypeName, decimal amount, bool andMatching ) : MatchingRule
CreateNewSingleUseRule ( string bucketCode, string description, string references, string transactionTypeName, decimal amount, bool andMatching ) : SingleUseMatchingRule
IsRuleSimilar ( SimilarMatchedRule rule, DecimalCriteria amount, StringCriteria description, StringCriteria references, StringCriteria transactionTypeName ) : bool
LoadAsync ( ApplicationDatabase applicationDatabase ) : System.Threading.Tasks.Task
Match ( IEnumerable transactions ) : bool
RemoveRule ( MatchingRule ruleToRemove ) : bool
SaveAsync ( ApplicationDatabase applicationDatabase ) : System.Threading.Tasks.Task
SavePreview ( ) : void
TransactionRuleService ( [ ruleRepository, [ logger, [ matchmaker, [ ruleFactory, [ environmentFolders, [ monitorableDependencies ) : System
ValidateModel ( StringBuilder messages ) : bool

Защищенные методы

Метод Описание
BuildDefaultFileName ( ) : Task

Приватные методы

Метод Описание
AddRule ( MatchingRule ruleToAdd ) : void
InitialiseTheRulesCollections ( List repoRules ) : void
IsSimilarRulePreconditions ( SimilarMatchedRule rule, DecimalCriteria amount, StringCriteria description, StringCriteria references, StringCriteria transactionType ) : void

Описание методов

BuildDefaultFileName() защищенный Метод

protected BuildDefaultFileName ( ) : Task
Результат Task

Close() публичный Метод

public Close ( ) : void
Результат void

CreateAsync() публичный Метод

public CreateAsync ( ApplicationDatabase applicationDatabase ) : System.Threading.Tasks.Task
applicationDatabase BudgetAnalyser.Engine.Persistence.ApplicationDatabase
Результат System.Threading.Tasks.Task

CreateNewRule() публичный Метод

public CreateNewRule ( string bucketCode, string description, string references, string transactionTypeName, decimal amount, bool andMatching ) : MatchingRule
bucketCode string
description string
references string
transactionTypeName string
amount decimal
andMatching bool
Результат MatchingRule

CreateNewSingleUseRule() публичный Метод

public CreateNewSingleUseRule ( string bucketCode, string description, string references, string transactionTypeName, decimal amount, bool andMatching ) : SingleUseMatchingRule
bucketCode string
description string
references string
transactionTypeName string
amount decimal
andMatching bool
Результат BudgetAnalyser.Engine.Matching.SingleUseMatchingRule

IsRuleSimilar() публичный Метод

public IsRuleSimilar ( SimilarMatchedRule rule, DecimalCriteria amount, StringCriteria description, StringCriteria references, StringCriteria transactionTypeName ) : bool
rule BudgetAnalyser.Engine.Matching.SimilarMatchedRule
amount DecimalCriteria
description StringCriteria
references StringCriteria
transactionTypeName StringCriteria
Результат bool

LoadAsync() публичный Метод

public LoadAsync ( ApplicationDatabase applicationDatabase ) : System.Threading.Tasks.Task
applicationDatabase BudgetAnalyser.Engine.Persistence.ApplicationDatabase
Результат System.Threading.Tasks.Task

Match() публичный Метод

public Match ( IEnumerable transactions ) : bool
transactions IEnumerable
Результат bool

RemoveRule() публичный Метод

public RemoveRule ( MatchingRule ruleToRemove ) : bool
ruleToRemove MatchingRule
Результат bool

SaveAsync() публичный Метод

public SaveAsync ( ApplicationDatabase applicationDatabase ) : System.Threading.Tasks.Task
applicationDatabase BudgetAnalyser.Engine.Persistence.ApplicationDatabase
Результат System.Threading.Tasks.Task

SavePreview() публичный Метод

public SavePreview ( ) : void
Результат void

TransactionRuleService() публичный Метод

public TransactionRuleService ( [ ruleRepository, [ logger, [ matchmaker, [ ruleFactory, [ environmentFolders, [ monitorableDependencies ) : System
ruleRepository [
logger [
matchmaker [
ruleFactory [
environmentFolders [
monitorableDependencies [
Результат System

ValidateModel() публичный Метод

public ValidateModel ( StringBuilder messages ) : bool
messages StringBuilder
Результат bool