public void Initialize()
 {
     StarsWars.Services.Tests.Config.AutoMapperConfig.Initialize();
     _container = new UnityContainer();
     _container.LoadConfiguration();
     _starsWarsManager = _container.Resolve <IStarsWarsManager>();
 }
Пример #2
0
 public StarsWarsController(IStarsWarsManager starsWarsManager)
 {
     _log = LogManager.GetLogger(this.GetType().FullName);
     _starsWarsManager = starsWarsManager;
     _pageSize         = Convert.ToInt32(ConfigurationManager.AppSettings["PageSize"]);
 }
Пример #3
0
 public StarsWarsDetailsController(IStarsWarsManager starsWarsManager)
 {
     _log = LogManager.GetLogger(this.GetType().FullName);
     _starsWarsManager = starsWarsManager;
 }