public void Init() { database = new StartupDatabase(); database.InitializeEFInMemoryDatabase(true); mockPasswordEncryptionService = new Mock <IPasswordEncryptionService>(); loginRepository = new LoginRepository(mockPasswordEncryptionService.Object); }
// 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(); }
public void Init() { database = new StartupDatabase(); database.InitializeEFInMemoryDatabase(true); transactionRepository = new TransactionRepository(); }
public void Init() { database = new StartupDatabase(); database.InitializeEFInMemoryDatabase(true); orderRepository = new OrderRepository(); }