Class FakeAchievementCustomConditionResolver
A resolver a test loads by hand, so no reflection is involved.
Implements
Inherited Members
Namespace: Serenity.Achievements.Tests.Fakes
Assembly: Tests.dll
Syntax
public class FakeAchievementCustomConditionResolver : IAchievementCustomConditionResolver
Constructors
FakeAchievementCustomConditionResolver()
Declaration
public FakeAchievementCustomConditionResolver()
Properties
ResolveCallCount
How many times TryResolve(string, out IAchievementCondition) was called.
Declaration
public int ResolveCallCount { get; }
Property Value
| Type | Description |
|---|---|
| int |
Methods
TryResolve(string, out IAchievementCondition)
Declaration
public bool TryResolve(string typeName, out IAchievementCondition condition)
Parameters
| Type | Name | Description |
|---|---|---|
| string | typeName | |
| IAchievementCondition | condition |
Returns
| Type | Description |
|---|---|
| bool |
With(string, IAchievementCondition)
Registers a rule under a type name.
Declaration
public FakeAchievementCustomConditionResolver With(string typeName, IAchievementCondition condition)
Parameters
| Type | Name | Description |
|---|---|---|
| string | typeName | The name a condition node will ask for. |
| IAchievementCondition | condition | The rule to hand back. |
Returns
| Type | Description |
|---|---|
| FakeAchievementCustomConditionResolver |