public LogHandler() { var logBookEntityModel = new LogBookEntityModel(); UpdateDatabase.Execute(); _writeService = new WriteService(logBookEntityModel); _readService = new ReadService(logBookEntityModel); }
public void Initialise() { var connection = Effort.DbConnectionFactory.CreateTransient(); _mockContext = new LogBookEntityModel(connection); _mockContext.Database.CreateIfNotExists(); _writeService = new WriteService(_mockContext); }
internal WriteService(LogBookEntityModel context) { _context = context; }
internal ReadService(LogBookEntityModel context) { _context = context; }