Exemplo n.º 1
0
        public LogHandler()
        {
            var logBookEntityModel = new LogBookEntityModel();

            UpdateDatabase.Execute();

            _writeService = new WriteService(logBookEntityModel);
            _readService  = new ReadService(logBookEntityModel);
        }
Exemplo n.º 2
0
        public void Initialise()
        {
            var connection = Effort.DbConnectionFactory.CreateTransient();

            _mockContext = new LogBookEntityModel(connection);

            _mockContext.Database.CreateIfNotExists();

            _writeService = new WriteService(_mockContext);
        }
Exemplo n.º 3
0
 internal WriteService(LogBookEntityModel context)
 {
     _context = context;
 }
Exemplo n.º 4
0
 internal ReadService(LogBookEntityModel context)
 {
     _context = context;
 }