LCOV - code coverage report
Current view: top level - Akka.Net/Cqrs.Akka.Tests.Unit/Commands/Handlers - ReplyToHelloWorldCommandHandler.cs Hit Total Coverage
Test: doc-coverage.info Lines: 1 3 33.3 %
Date: 2017-07-26

          Line data    Source code
       1             : using System;
       2             : using Akka.Actor;
       3             : using Cqrs.Akka.Domain;
       4             : using Cqrs.Akka.Tests.Unit.Aggregates;
       5             : using Cqrs.Commands;
       6             : 
       7             : namespace Cqrs.Akka.Tests.Unit.Commands.Handlers
       8             : {
       9             :         public class ReplyToHelloWorldCommandHandler
      10             :                 : ICommandHandler<Guid, ReplyToHelloWorldCommand>
      11           0 :         {
      12             :                 /// <summary>
      13             :                 /// Instantiates the <see cref="ReplyToHelloWorldCommandHandler"/> class registering any <see cref="ReceiveActor.Receive{T}(System.Func{T,System.Threading.Tasks.Task})"/> required.
      14             :                 /// </summary>
      15           1 :                 public ReplyToHelloWorldCommandHandler(IAkkaAggregateResolver aggregateResolver)
      16             :                 {
      17             :                         AggregateResolver = aggregateResolver;
      18             :                 }
      19             : 
      20             :                 protected IAkkaAggregateResolver AggregateResolver { get; private set; }
      21             : 
      22             :                 #region Implementation of IMessageHandler<in ReplyToHelloWorldCommand>
      23             : 
      24           0 :                 public void Handle(ReplyToHelloWorldCommand command)
      25             :                 {
      26             :                         IActorRef item = AggregateResolver.ResolveActor<HelloWorld, Guid>(command.Id);
      27             :                         bool result = item.Ask<bool>(command).Result;
      28             :                         // item.Tell(parameters);
      29             :                 }
      30             : 
      31             :                 #endregion
      32             :         }
      33             : }

Generated by: LCOV version 1.10