示例#1
0
        public TraceControllerTest()
        {
            var options = new DbContextOptionsBuilder <BD_EPM>()
                          .UseInMemoryDatabase("DatabaseTrace-" + $"{Guid.NewGuid()}")
                          .Options;

            var bdEnMemoire = new BD_EPM(options);

            _traceController = new TraceController(bdEnMemoire, new FakeUpload());
        }
示例#2
0
        public CritereControllerTests()
        {
            var options = new DbContextOptionsBuilder <BD_EPM>()
                          .UseInMemoryDatabase("DatabaseTrace-" + $"{Guid.NewGuid()}")
                          .Options;

            var bdEnMemoire = new BD_EPM(options);

            _CritereController = new CritereController(bdEnMemoire);
        }
示例#3
0
 public CritereController(BD_EPM maBd)
 {
     _maBd = maBd;
 }
示例#4
0
 public HistoriqueController(BD_EPM maBd)
 {
     _maBd = maBd;
 }
示例#5
0
 public CategorieController(BD_EPM maBd)
 {
     _maBd = maBd;
 }
示例#6
0
 public UtilisateurController(BD_EPM maBd)
 {
     _maBd = maBd;
 }
示例#7
0
 public TraceController(BD_EPM maBd, UploadService uploadService)
 {
     _maBd          = maBd;
     _uploadService = uploadService;
 }