Method | Description | |
---|---|---|
CreateNewFixedBudgetProject ( string bucketCode, string description, decimal fixedBudgetAmount ) : |
Creates the new fixed budget project.
|
|
GetByCode ( string code ) : |
Gets a bucket by its code.
|
|
GetOrCreateNew ( string code, Func |
Gets the bucket by its code or creates a new one if not found.
|
|
InMemoryBudgetBucketRepository ( BudgetBucket>.[ |
Initializes a new instance of the InMemoryBudgetBucketRepository class.
|
|
Initialise ( IEnumerable |
Initialises the buckets from the provided data. Used by persistence.
|
|
IsValidCode ( string code ) : bool |
Determines whether the bucket code is registered in this repository.
|
|
RemoveFixedBudgetProject ( |
Removes the fixed budget project bucket permanently
|
Method | Description | |
---|---|---|
AddBucket ( [ bucket ) : void |
Adds the bucket.
|
|
InitialiseMandatorySpecialBuckets ( ) : void |
Initialises the mandatory special buckets.
|
Method | Description | |
---|---|---|
ContainsKeyInternal ( string code ) : bool |
public CreateNewFixedBudgetProject ( string bucketCode, string description, decimal fixedBudgetAmount ) : |
||
bucketCode | string | The bucket code. |
description | string | The description. |
fixedBudgetAmount | decimal | The fixed budget amount. |
return |
public GetByCode ( string code ) : |
||
code | string | The code, also used as a key and must be unique. |
return |
public GetOrCreateNew ( string code, Func |
||
code | string | The code, also used as a key and must be unique. |
factory | Func |
The factory to create the new bucket if not already registered. |
return |
public InMemoryBudgetBucketRepository ( BudgetBucket>.[ |
||
mapper | BudgetBucket>.[ | |
return | System |
public Initialise ( IEnumerable |
||
buckets | IEnumerable |
|
return | void |
protected InitialiseMandatorySpecialBuckets ( ) : void | ||
return | void |
public IsValidCode ( string code ) : bool | ||
code | string | The code, also used as a key and must be unique. |
return | bool |
public RemoveFixedBudgetProject ( |
||
projectBucket | The project bucket to remove. | |
return | void |