Exemple #1
0
        public ApiTest()
        {
            var builder = new DbContextOptionsBuilder <WSFilmsContext>().UseNpgsql("Server=localhost;port=5432;Database=WSFilms; uid=postgres; password=postgres;");

            _context        = new WSFilmsContext(builder.Options);
            _dataRepository = new CompteManager(_context);
            _controller     = new ComptesController(_dataRepository);
        }
Exemple #2
0
 public CompteManager(WSFilmsContext context)
 {
     _wSFilmsContext = context;
 }