Exemplo n.º 1
0
        public FairyTaleControlTest()
        {
            ILogger <FairyTaleControl> logger         = Mock.Of <ILogger <FairyTaleControl> >();
            ILogger <LocationService>  locationLogger = Mock.Of <ILogger <LocationService> >();

            this.eventProducer = new Mock <IEventProducer>();
            ILocationService locationService = new LocationService(locationLogger, new Random());

            this.fairyTaleControl = new FairyTaleControl(logger, this.eventProducer.Object, locationService);
        }
Exemplo n.º 2
0
 public EventConsumer(IFairyTaleControl fairyTaleControl, IConfiguration configuration) :
     base("domainEvents", configuration["KafkaBroker"], "fairytales")
 {
     this.fairyTaleControl = fairyTaleControl;
 }
Exemplo n.º 3
0
 public FairyTaleBoundary(IFairyTaleControl fairyTaleControl)
 {
     this.fairyTaleControl = fairyTaleControl;
 }