Beispiel #1
0
 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());
 }
Beispiel #2
0
 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());
 }
Beispiel #4
0
 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());
 }
Beispiel #6
0
 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());
 }
Beispiel #7
0
 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());
 }
Beispiel #8
0
        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());
        }
Beispiel #9
0
 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());
 }
Beispiel #10
0
        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());
        }
Beispiel #11
0
 public SparseFieldSetTests(DocsFixture <Startup, JsonDocWriter> fixture)
 {
     _fixture   = fixture;
     _dbContext = fixture.GetService <AppDbContext>();
 }
Beispiel #12
0
 public RequestMetaTests(DocsFixture <Startup, JsonDocWriter> fixture)
 {
     _fixture = fixture;
 }
Beispiel #13
0
 public ContentNegotiation(DocsFixture <Startup, JsonDocWriter> fixture)
 {
     _fixture = fixture;
 }
 public FetchingDataTests(DocsFixture <Startup, JsonDocWriter> fixture)
 {
     _fixture        = fixture;
     _jsonApiContext = fixture.GetService <IJsonApiContext>();
 }
Beispiel #15
0
 public RepositoryOverrideTests(DocsFixture <Startup, JsonDocWriter> fixture)
 {
     _fixture = fixture;
 }
 public QueryParameters(DocsFixture<Startup, JsonDocWriter> fixture)
 {
     _fixture = fixture;
 }
Beispiel #17
0
 public Meta(DocsFixture <Startup, JsonDocWriter> fixture)
 {
     _fixture = fixture;
     _context = fixture.GetService <AppDbContext>();
 }