Example #1
0
 public GuestController()
 {
     _guestService         = new GuestService();
     _personService        = new PersonService();
     _movieService         = new MovieService();
     _posItemService       = new POSItemService();
     _taxiService          = new TaxiService();
     _adventureService     = new AdventureService();
     _movieCategoryService = new MovieCategoryService();
     _guestPlaylistService = new GuestPlaylistService();
     _escortService        = new EscortService();
 }
        private static void TestKillArcher()
        {
            adventureService = Container.Resolve <IAdventureService>();
            adventureService.Kill(1);
            int archersCount;

            using (var db = new AppDbContext())
            {
                archersCount = db.Units.Find(1).Count;
            }
            Console.WriteLine(archersCount == 0  ? "UnitService - Test02 - OK" : "UnitService - Test02 - FAIL");
        }
 public AdventureController(IAdventureService adventureService)
 {
     _adventureService = adventureService;
 }
Example #4
0
 public GameService(IAdventureService AdventureService, ICharacterService CharacterService)
 {
     adventureService = AdventureService;
     characterService = CharacterService;
 }
 public AdventureFacade(IAdventureService adventureService)
 {
     this.adventureService = adventureService;
 }
Example #6
0
 public GameService(IAdventureService AdventureService, ICharacterService CharacterService, IMessageHandler MessageHandler)
 {
     adventureService = AdventureService;
     characterService = CharacterService;
     messageHandler   = MessageHandler;
 }
Example #7
0
 public AdventureController(IAdventureService service)
 {
     adventureService = service;
 }
 public VillageFacade(IVillageService villageService, IResourceService resourceService, IAdventureService adventureService)
 {
     this.villageService   = villageService;
     this.resourceService  = resourceService;
     this.adventureService = adventureService;
 }