public BPerson(SIEContext context) { _context = context; _uPerson = new UPerson(_context); _uInstitution = new UInstitution(_context); _bInstitution = new BInstitution(_context); }
public BPasswordRecovery(SIEContext context, IConfiguration configuration = null) { _context = context; _uPasswordRecovery = new UPasswordRecovery(context); if (configuration != null) { _sEmail = new EmailService(configuration); } }
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; }
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; }
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; }
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); }
public UAnswer(SIEContext context) => _context = context;
public DashboardAnswerStudent(SIEContext context, Person person) { _uActivity = new UActivity(context); _uRelStudentRoom = new URelStudentRoom(context); _person = person; }
public BRelUploadAnswer(SIEContext context) => _context = context;
public URelUploadActivity(SIEContext context) => _context = context;
public URoom(SIEContext context) => _context = context;
public BInstitution(SIEContext context) { _context = context; }
public BRelUploadActivity(SIEContext context) { _context = context; _uRelUploadActivity = new URelUploadActivity(context); }
public UPerson(SIEContext context) => _context = context;
public BActivity(SIEContext context) { _context = context; _uActivity = new UActivity(context); }
public InstitutionController(SIEContext context) { _uInstitution = new UInstitution(context); }
public UPasswordRecovery(SIEContext context) => _context = context;
public BDocument(SIEContext context) => _context = context;
public UInstitution(SIEContext context) => _context = context;
public UActivity(SIEContext context) => _context = context;
public BHistory(SIEContext context) => _context = context;
public BRelStudentRoom(SIEContext context) => _context = context;