Exemplo n.º 1
0
 private static void RegisterCommandHandles(FakeBus bus, ClaimsCommandHandler commands)
 {
     bus.RegisterHandle <ClaimFileCommand>(commands.Handle);
     bus.RegisterHandle <SendEmailCommand>(commands.Handle);
     bus.RegisterHandle <ClaimRejectedCommand>(commands.Handle);
     bus.RegisterHandle <ClaimApprovedCommand>(commands.Handle);
 }
Exemplo n.º 2
0
 private static void RegisterEventHandles(FakeBus bus, ClaimsEventHandler events)
 {
     bus.RegisterHandle <ClaimFiledEvent>(events.Handle);
     bus.RegisterHandle <ClaimRejectedEvent>(events.Handle);
     bus.RegisterHandle <ClaimApprovedEvent>(events.Handle);
 }