Esempio n. 1
0
 public BPerson(SIEContext context)
 {
     _context      = context;
     _uPerson      = new UPerson(_context);
     _uInstitution = new UInstitution(_context);
     _bInstitution = new BInstitution(_context);
 }
Esempio n. 2
0
 public BPasswordRecovery(SIEContext context, IConfiguration configuration = null)
 {
     _context           = context;
     _uPasswordRecovery = new UPasswordRecovery(context);
     if (configuration != null)
     {
         _sEmail = new EmailService(configuration);
     }
 }
Esempio n. 3
0
        public PersonController(SIEContext context, IConfiguration configuration)
        {
            _bHistory          = new BHistory(context);
            _bPerson           = new BPerson(context);
            _bPasswordRecovery = new BPasswordRecovery(context, configuration);
            _bInstitution      = new BInstitution(context);
            _uPerson           = new UPerson(context);
            _uRecoveryPassword = new UPasswordRecovery(context);
            _uInstitution      = new UInstitution(context);

            _configuration = configuration;
        }
Esempio n. 4
0
        public TeacherController(SIEContext context, IConfiguration configuration)
        {
            _bHistory           = new BHistory(context);
            _bActivity          = new BActivity(context);
            _bRoom              = new BRoom(context);
            _bAnswer            = new BAnswer(context);
            _bDocument          = new BDocument(context);
            _bRelUploadActivity = new BRelUploadActivity(context);

            _uActivity          = new UActivity(context);
            _uRoom              = new URoom(context);
            _uAnswer            = new UAnswer(context);
            _uRelUploadActivity = new URelUploadActivity(context);
            _uRelUploadAnswer   = new URelUploadAnswer(context);

            _configuration = configuration;
        }
Esempio n. 5
0
        public StudentController(SIEContext context, IConfiguration configuration)
        {
            _context = context;

            _bHistory = new BHistory(context);
            _bRelStudentRoom = new BRelStudentRoom(context);
            _bRoom = new BRoom(context);
            _bAnswer = new BAnswer(context);
            _bDocument = new BDocument(context);
            _bRelUploadAnswer = new BRelUploadAnswer(context);

            _uActivity = new UActivity(context);
            _uRelStudentRoom = new URelStudentRoom(context);
            _uRoom = new URoom(context);
            _uAnswer = new UAnswer(context);
            _uRelUploadActivity = new URelUploadActivity(context);
            _uRelUploadAnswer = new URelUploadAnswer(context);
            _uPerson = new UPerson(context);

            _configuration = configuration;

        }
Esempio n. 6
0
        public PersonControllerTest()
        {
            var builder = new DbContextOptionsBuilder <SIEContext>().UseInMemoryDatabase();

            _context = new SIEContext(builder.Options);

            var person = new Person
            {
                BirthDate = DateTime.Now,
                Cpf       = "09505752164",
                Email     = "*****@*****.**",
                Name      = "Pessoa teste",
                Password  = "******",
                Profile   = (int)EProfile.Teacher,
                Sex       = (int)ESex.Male
            };

            _context.Person.Add(person);
            _context.SaveChanges();

            _controller = new PersonController(_context, null);
        }
Esempio n. 7
0
 public UAnswer(SIEContext context) => _context = context;
Esempio n. 8
0
 public DashboardAnswerStudent(SIEContext context, Person person)
 {
     _uActivity       = new UActivity(context);
     _uRelStudentRoom = new URelStudentRoom(context);
     _person          = person;
 }
Esempio n. 9
0
 public BRelUploadAnswer(SIEContext context) => _context = context;
Esempio n. 10
0
 public URelUploadActivity(SIEContext context) => _context = context;
Esempio n. 11
0
 public URoom(SIEContext context) => _context = context;
Esempio n. 12
0
 public BInstitution(SIEContext context)
 {
     _context = context;
 }
Esempio n. 13
0
 public BRelUploadActivity(SIEContext context)
 {
     _context            = context;
     _uRelUploadActivity = new URelUploadActivity(context);
 }
Esempio n. 14
0
 public UPerson(SIEContext context) => _context = context;
Esempio n. 15
0
 public BActivity(SIEContext context)
 {
     _context   = context;
     _uActivity = new UActivity(context);
 }
Esempio n. 16
0
 public InstitutionController(SIEContext context)
 {
     _uInstitution = new UInstitution(context);
 }
Esempio n. 17
0
 public UPasswordRecovery(SIEContext context) => _context = context;
Esempio n. 18
0
 public BDocument(SIEContext context) => _context = context;
Esempio n. 19
0
 public UInstitution(SIEContext context) => _context = context;
Esempio n. 20
0
 public UActivity(SIEContext context) => _context = context;
Esempio n. 21
0
 public BHistory(SIEContext context) => _context = context;
Esempio n. 22
0
 public BRelStudentRoom(SIEContext context) => _context = context;