Ejemplo n.º 1
0
        public void SetUp()
        {
            mockLogger = Substitute.For <ILogger>();
            mockLogger.IsInfoEnabled.Returns(true);
            mockLogger.IsDebugEnabled.Returns(true);

            mockBeacon     = Substitute.For <IBeacon>();
            mockRootAction = Substitute.For <IRootActionInternals>();
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Constructor for creating a leaf action instance.
 /// </summary>
 /// <param name="logger">logger used to log information</param>
 /// <param name="parentAction">the root action to which this leaf action belongs to</param>
 /// <param name="name">the name of the action</param>
 /// <param name="beacon">the beacon for retrieving certain data and for sending data</param>
 internal LeafAction(ILogger logger, IRootActionInternals parentAction, string name, IBeacon beacon)
     : base(logger, parentAction, name, beacon)
 {
     ParentAction = parentAction;
 }