public IntegrationClientDataset(TodoAgilityDbContext db) { DbContext = db; DatabaseFixture = new Fixture(); DatabaseFixture.Register <UserState>(() => new UserState(DatabaseFixture.Create <Guid>(), DatabaseFixture.Create <string>(), DatabaseFixture.Create <string>(), string.Format($"{DatabaseFixture.Create<string>()}@teste.com"), BitConverter.GetBytes(DatabaseFixture.Create <int>()))); DatabaseFixture.Register <UserProjection>(() => new UserProjection(DatabaseFixture.Create <Guid>(), DatabaseFixture.Create <string>(), DatabaseFixture.Create <string>(), string.Format($"{DatabaseFixture.Create<string>()}@teste.com"), DatabaseFixture.Create <int>())); }
public UserProjectionRepository(TodoAgilityDbContext context) { _context = context; }
public UserRepository(TodoAgilityDbContext context) { DbContext = context; }