public TodoItemControllerIntegrationTests(DocsFixture <TodoItem, Startup, JsonDocWriter> fixture) { _fixture = fixture; _context = fixture.GetService <AppDbContext>(); _todoItemFaker = new Faker <TodoItem>() .RuleFor(t => t.Description, f => f.Lorem.Sentence()); }
public UpdatingDataTests(DocsFixture <Startup, JsonDocWriter> fixture) { _fixture = fixture; _context = fixture.GetService <AppDbContext>(); _todoItemFaker = new Faker <TodoItem>() .RuleFor(t => t.Description, f => f.Lorem.Sentence()) .RuleFor(t => t.Ordinal, f => f.Random.Number()); }
public UserControllerIntegrationTests(DocsFixture <User, Startup, JsonDocWriter> fixture) { _fixture = fixture; _context = fixture.GetService <AppDbContext>(); _userFaker = new Faker <User>() .RuleFor(u => u.FirstName, f => f.Name.FirstName()) .RuleFor(u => u.LastName, f => f.Name.LastName()); }
public CamelCasedModelsControllerTests(DocsFixture <Startup, JsonDocWriter> fixture) { _fixture = fixture; _context = fixture.GetService <AppDbContext>(); _jsonApiContext = fixture.GetService <IJsonApiContext>(); _faker = new Faker <CamelCasedModel>() .RuleFor(m => m.CompoundAttr, f => f.Lorem.Sentence()); }
public FetchingRelationshipsTests(DocsFixture <Startup, JsonDocWriter> fixture) { _fixture = fixture; _jsonApiContext = fixture.GetService <IJsonApiContext>(); _todoItemFaker = new Faker <TodoItem>() .RuleFor(t => t.Description, f => f.Lorem.Sentence()) .RuleFor(t => t.Ordinal, f => f.Random.Number()); }
public Relationships(DocsFixture <Startup, JsonDocWriter> fixture) { _fixture = fixture; _context = fixture.GetService <AppDbContext>(); _todoItemFaker = new Faker <TodoItem>() .RuleFor(t => t.Description, f => f.Lorem.Sentence()) .RuleFor(t => t.Ordinal, f => f.Random.Number()) .RuleFor(t => t.CreatedDate, f => f.Date.Past()); }
public CustomControllerTests(DocsFixture <Startup, JsonDocWriter> fixture) { _fixture = fixture; _todoItemFaker = new Faker <TodoItem>() .RuleFor(t => t.Description, f => f.Lorem.Sentence()) .RuleFor(t => t.Ordinal, f => f.Random.Number()); _personFaker = new Faker <Person>() .RuleFor(p => p.FirstName, f => f.Name.FirstName()) .RuleFor(p => p.LastName, f => f.Name.LastName()); }
public UpdatingRelationshipsTests(DocsFixture <Startup, JsonDocWriter> fixture) { _fixture = fixture; _context = fixture.GetService <AppDbContext>(); _personFaker = new Faker <Person>() .RuleFor(t => t.FirstName, f => f.Name.FirstName()) .RuleFor(t => t.LastName, f => f.Name.LastName()); _todoItemFaker = new Faker <TodoItem>() .RuleFor(t => t.Description, f => f.Lorem.Sentence()) .RuleFor(t => t.Ordinal, f => f.Random.Number()); }
public FetchingDataTests(DocsFixture <Startup, JsonDocWriter> fixture) { _fixture = fixture; _jsonApiContext = fixture.GetService <IJsonApiContext>(); _todoItemFaker = new Faker <TodoItem>() .RuleFor(t => t.Description, f => f.Lorem.Sentence()) .RuleFor(t => t.Ordinal, f => f.Random.Number()) .RuleFor(t => t.CreatedDate, f => f.Date.Past()); _personFaker = new Faker <Person>() .RuleFor(p => p.FirstName, f => f.Name.FirstName()) .RuleFor(p => p.LastName, f => f.Name.LastName()); }
public PagingTests(DocsFixture <Startup, JsonDocWriter> fixture) { _fixture = fixture; _context = fixture.GetService <AppDbContext>(); _personFaker = new Faker <Person>() .RuleFor(p => p.FirstName, f => f.Name.FirstName()) .RuleFor(p => p.LastName, f => f.Name.LastName()); _todoItemFaker = new Faker <TodoItem>() .RuleFor(t => t.Description, f => f.Lorem.Sentence()) .RuleFor(t => t.Ordinal, f => f.Random.Number()); _todoItemCollectionFaker = new Faker <TodoItemCollection>() .RuleFor(t => t.Name, f => f.Company.CatchPhrase()); }
public SparseFieldSetTests(DocsFixture <Startup, JsonDocWriter> fixture) { _fixture = fixture; _dbContext = fixture.GetService <AppDbContext>(); }
public RequestMetaTests(DocsFixture <Startup, JsonDocWriter> fixture) { _fixture = fixture; }
public ContentNegotiation(DocsFixture <Startup, JsonDocWriter> fixture) { _fixture = fixture; }
public FetchingDataTests(DocsFixture <Startup, JsonDocWriter> fixture) { _fixture = fixture; _jsonApiContext = fixture.GetService <IJsonApiContext>(); }
public RepositoryOverrideTests(DocsFixture <Startup, JsonDocWriter> fixture) { _fixture = fixture; }
public QueryParameters(DocsFixture<Startup, JsonDocWriter> fixture) { _fixture = fixture; }
public Meta(DocsFixture <Startup, JsonDocWriter> fixture) { _fixture = fixture; _context = fixture.GetService <AppDbContext>(); }