Exemple #1
0
        public async Task Setup()
        {
            container = new UnityContainer();
            await Helpers.LearningTestingHelper.RegisterLearningTestingHelper(container);

            container.RegisterType <IVehicleService, VehicleService>();
            vehicleService = container.Resolve <IVehicleService>();
            repo4Admin     = container.Resolve <IDatabaseRepo4Admin>();


            await repo4Admin.ClearRepo();
        }
 public VehicleService(IDatabaseRepo databaseRepo, IDatabaseRepo4Admin repo4Admin)
 {
     this.databaseRepo = databaseRepo;
 }