Beispiel #1
0
        private StoryServiceDb GetInMemoryContextWithSeedData()
        {
            var options = new DbContextOptionsBuilder <StoryServiceDb>()
                          .UseInMemoryDatabase(Guid.NewGuid().ToString())
                          .Options;
            var context = new StoryServiceDb(options);

            context.Add(_stubBoard);
            context.Add(_stubSuperStoryDto);
            context.Add(_stubStoryDto);
            context.SaveChanges();

            return(context);
        }
 public BoardRepository(StoryServiceDb context, ILogger <BoardRepository> logger)
 {
     _context = context;
     _logger  = logger;
 }
Beispiel #3
0
 public ChartsRepository(StoryServiceDb context)
 {
     _context = context;
 }
 public AgileItemRepository(StoryServiceDb context, ILogger <AgileItemRepository> logger)
 {
     _context = context;
     _logger  = logger;
 }