public WeatherForecastService(
     ILogger <WeatherForecastService> logger,
     IRandomizerService randomizer)
 {
     _logger     = logger;
     _randomizer = randomizer;
 }
Example #2
0
 /// <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];
 }
Example #5
0
 public ShapeFactory(IRandomizerService service, IDevice device)
 {
     _service = service;
     _device = device;
 }
 public ResistanceViewModel(IRandomizerService randomizerService)
 {
     _players      = randomizerService.GetShuffledResistancePlayers(Settings.PlayersSetting.Count, "Resistance");
     CurrentPlayer = _players[_currentPlayerIndex];
 }
Example #7
0
 protected ShapeViewModel(IRandomizerService randomizer)
 {
     _randomizer = randomizer;
 }
Example #8
0
        public CircleViewModel(IRandomizerService randomizer) : base(randomizer)
        {

        }
Example #9
0
        public SquareViewModel(IRandomizerService randomizer)
            : base(randomizer)
        {

        }