Skip to content

Commit

Permalink
Rename InternalSupportsTestFSMRef > IInternalSupportsTestFSMRef
Browse files Browse the repository at this point in the history
  • Loading branch information
HCanber committed Mar 31, 2015
1 parent 582d60d commit abd8192
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
4 changes: 2 additions & 2 deletions src/core/Akka.TestKit/TestFSMRef.cs
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public void SetState(TState stateName, TimeSpan? timeout = null)
/// </summary>
public void SetState(TState stateName, TData stateData, TimeSpan? timeout = null, FSMBase.Reason stopReason = null)
{
var fsm = ((InternalSupportsTestFSMRef<TState, TData>)UnderlyingActor);
var fsm = ((IInternalSupportsTestFSMRef<TState, TData>)UnderlyingActor);
InternalRef.Cell.UseThreadContext(() => fsm.ApplyState(new FSMBase.State<TState, TData>(stateName, stateData, timeout, stopReason)));
}

Expand Down Expand Up @@ -98,7 +98,7 @@ public bool IsTimerActive(string name)
/// <returns><c>true</c> if the FSM has a active state timer active; <c>false</c> otherwise</returns>
public bool IsStateTimerActive()
{
var fsm = ((InternalSupportsTestFSMRef<TState, TData>)UnderlyingActor);
var fsm = ((IInternalSupportsTestFSMRef<TState, TData>)UnderlyingActor);
return fsm.IsStateTimerActive;
}
}
Expand Down
6 changes: 3 additions & 3 deletions src/core/Akka/Actor/FSM.cs
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ public StopEvent(Reason reason, TS terminatedState, TD stateData)
/// </summary>
/// <typeparam name="TState">The state name type</typeparam>
/// <typeparam name="TData">The state data type</typeparam>
public abstract class FSM<TState, TData> : FSMBase, IListeners, InternalSupportsTestFSMRef<TState,TData>
public abstract class FSM<TState, TData> : FSMBase, IListeners, IInternalSupportsTestFSMRef<TState,TData>
{
private readonly LoggingAdapter _log = Context.GetLogger();
protected FSM()
Expand Down Expand Up @@ -552,7 +552,7 @@ public void SetStateTimeout(TState state, TimeSpan? timeout)
}

//Internal API
bool InternalSupportsTestFSMRef<TState, TData>.IsStateTimerActive
bool IInternalSupportsTestFSMRef<TState, TData>.IsStateTimerActive
{
get
{
Expand Down Expand Up @@ -855,7 +855,7 @@ private string GetSourceString(object source)
}

//Internal API
void InternalSupportsTestFSMRef<TState, TData>.ApplyState(State<TState, TData> upcomingState)
void IInternalSupportsTestFSMRef<TState, TData>.ApplyState(State<TState, TData> upcomingState)
{
ApplyState(upcomingState);
}
Expand Down
3 changes: 1 addition & 2 deletions src/core/Akka/Actor/Internals/InternalSupportsTestFSMRef.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@ namespace Akka.Actor.Internal
/// This is used to let TestFSMRef in TestKit access to internal methods.
/// <remarks>Note! Part of internal API. Breaking changes may occur without notice. Use at own risk.</remarks>
/// </summary>
// ReSharper disable once InconsistentNaming
public interface InternalSupportsTestFSMRef<TState, TData>
public interface IInternalSupportsTestFSMRef<TState, TData>
{
/// <summary>
/// INTERNAL API. Used for testing.
Expand Down

0 comments on commit abd8192

Please sign in to comment.