Exemplo n.º 1
0
        public async Task Initialize()
        {
            //DbContext
            _context = TestInitializer.Provider.GetService <DatabaseContext>();

            //Data
            await TestInitializer.Provider.GetService <UserDataFactory>().CreateUsers();

            await TestInitializer.Provider.GetService <ActionDataFactory>().CreateActions();

            await TestInitializer.Provider.GetService <InfoAboutActionDataFactory>().CreateInfoActions();

            _infoAboutActions = await _context.ParametrsActions.ToListAsync();

            //Services
            _service = new InfoActionService(_context);
        }
Exemplo n.º 2
0
 public LogService(IActionService actionService, IInfoActionService infoActionService)
 {
     _actionService     = actionService;
     _infoActionService = infoActionService;
 }