private static void AllocatePlanets(IShardService shardService) { var allShards = shardService.GetShards().ToList(); foreach (var shard in allShards) { if (shard.Planets.Count <= 1) { shardService.AllocatePlanets(shard); } } }
public BroadcastController(IShardService shardService, IReportsService reportsService) { this.shardService = shardService; this.reportsService = reportsService; }
public ShardsController(IPlanetService planetService, IShardService shardService) { this.planetService = planetService; this.shardService = shardService; }
public MainWindowViewModel() { shardService = new ShardService(new WebApiClient()); GetResultCommand = new RelayCommand(OnGetResult); }
public PreviewController(IShardService shardService, IPlanetService planetService) { this.shardService = shardService; this.planetService = planetService; }