public UnitTest1(ITestOutputHelper output) { _output = output; _context = new ContentDbContext("Data Source=172.25.238.237;Integrated Security=False;User ID=sa;Password=123qweASD!;Connect Timeout=30;Encrypt=False;TrustServerCertificate=False;ApplicationIntent=ReadWrite;MultiSubnetFailover=False"); _recycleBinRepository = new RecycleBinRepository(_context); _deleteContentRepository = new DeleteContentRepository(_context); _createContentRepository = new CreateContentRepository(_context); _updateContentRepository = new UpdateContentRepository(_context); _readContentRepository = new ReadContentRepository(_context); }
public CreateContentGrain(ICreateContentRepository repository) { _repository = repository; }
public ManageContentGrain(ICreateContentRepository createRepository, IDeleteContentRepository deleteRepository, IUpdateContentRepository updateRepository) { _createRepository = createRepository; _deleteRepository = deleteRepository; _updateRepository = updateRepository; }