Esempio n. 1
0
        public PreviousResultsTests()
        {
            var serviceTestsLocator = new ServiceTestsLocator();

            var sqlLiteDatabasePath = Path.GetFullPath(@"..\..\..\..\NPV.Api\npv.db");

            serviceTestsLocator.serviceCollection.AddDbContext <NPVContext>(options =>
                                                                            options.UseSqlite($"Data Source={sqlLiteDatabasePath}"));

            _npvContext = serviceTestsLocator.GetService <INPVContext>(typeof(INPVContext), typeof(NPVContext));
        }
Esempio n. 2
0
        public CalculationTests()
        {
            var serviceTestsLocator = new ServiceTestsLocator();

            calculationService = serviceTestsLocator.GetService <ICalculationService>(typeof(ICalculationService), typeof(CalculationService));
        }