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); }
public EventConsumer(IFairyTaleControl fairyTaleControl, IConfiguration configuration) : base("domainEvents", configuration["KafkaBroker"], "fairytales") { this.fairyTaleControl = fairyTaleControl; }
public FairyTaleBoundary(IFairyTaleControl fairyTaleControl) { this.fairyTaleControl = fairyTaleControl; }