public WeatherForecastService( ILogger <WeatherForecastService> logger, IRandomizerService randomizer) { _logger = logger; _randomizer = randomizer; }
/// <summary> /// Initializes a new instance of the GenerationService class. /// </summary> public GenerationService() { fhirSenderService = ApplicationContext.Current.GetService <IFhirSenderService>(); hl7v2SenderService = ApplicationContext.Current.GetService <IHL7v2SenderService>(); hl7v3SenderService = ApplicationContext.Current.GetService <IHL7v3SenderService>(); persistenceService = ApplicationContext.Current.GetService <IPersistenceService>(); randomizerService = ApplicationContext.Current.GetService <IRandomizerService>(); }
public void Setup() { logger = new Mock <ILogger <WeatherForecastService> >().Object; randomizerService = new Mock <IRandomizerService>().Object; weatherForecastService = new WeatherForecastService( logger, randomizerService); }
public SecretHitlerViewModel(IRandomizerService randomizerService) { _players = randomizerService.GetShuffledPlayers(Settings.PlayersSetting.Count, "SecretHitler"); CurrentPlayer = _players[_currentPlayerIndex]; }
public ShapeFactory(IRandomizerService service, IDevice device) { _service = service; _device = device; }
public ResistanceViewModel(IRandomizerService randomizerService) { _players = randomizerService.GetShuffledResistancePlayers(Settings.PlayersSetting.Count, "Resistance"); CurrentPlayer = _players[_currentPlayerIndex]; }
protected ShapeViewModel(IRandomizerService randomizer) { _randomizer = randomizer; }
public CircleViewModel(IRandomizerService randomizer) : base(randomizer) { }
public SquareViewModel(IRandomizerService randomizer) : base(randomizer) { }