Ejemplo n.º 1
0
 protected TestBase()
 {
     //RentBoatContextDatabaseInitializer boatContextDatabaseInitializer = new RentBoatContextDatabaseInitializer();
     //CommandRentBoatContextDatabaseInitializer commandRentBoatContextDatabaseInitializer = new CommandRentBoatContextDatabaseInitializer();
     //boatContextDatabaseInitializer.Initialize();
     //commandRentBoatContextDatabaseInitializer.Initialize();
     WorkerService = new BoatWorkerService(new Repository());
 }
Ejemplo n.º 2
0
        public BoatController(BoatWorkerService boatWorkerService)
        {
            if (boatWorkerService == null)
            {
                throw new ArgumentNullException("workerService");
            }

            WorkerService = boatWorkerService;
        }