Пример #1
0
 public void Init()
 {
     database = new StartupDatabase();
     database.InitializeEFInMemoryDatabase(true);
     mockPasswordEncryptionService = new Mock <IPasswordEncryptionService>();
     loginRepository = new LoginRepository(mockPasswordEncryptionService.Object);
 }
Пример #2
0
        // This method gets called by the runtime. Use this method to add services to the container.
        public void ConfigureServices(IServiceCollection services)
        {
            services.AddMvc().SetCompatibilityVersion(CompatibilityVersion.Version_2_2);

            // In production, the Angular files wilßl be served from this directory
            services.AddSpaStaticFiles(configuration =>
            {
                configuration.RootPath = "ClientApp/dist";
            });

            services.AddDbContext <OracleContext>();

            StartupDatabase.FillData(services);
        }
 public void Init()
 {
     startupDatabase = new StartupDatabase();
 }
Пример #4
0
 public void Init()
 {
     database = new StartupDatabase();
     database.InitializeEFInMemoryDatabase(true);
     transactionRepository = new TransactionRepository();
 }
Пример #5
0
 public void Init()
 {
     database = new StartupDatabase();
     database.InitializeEFInMemoryDatabase(true);
     orderRepository = new OrderRepository();
 }