public GetSprintTests(SpirebyteApplicationFactory <Program> factory) { _rabbitMqFixture = new RabbitMqFixture(); _sprintMongoDbFixture = new MongoDbFixture <SprintDocument, string>("sprints"); factory.Server.AllowSynchronousIO = true; _queryHandler = factory.Services.GetRequiredService <IQueryHandler <GetSprint, SprintDto> >(); }
public ParcelsApiPactProviderTests() { _mongoDbFixture = new MongoDbFixture <ParcelDocument, Guid>("test-parcels-service", "Parcels"); var testServer = new TestServer(Program.GetWebHostBuilder(new string[0])); _httpClient = testServer.CreateClient(); }
public SignedUpTests(SpirebyteApplicationFactory <Program> factory) { _rabbitMqFixture = new RabbitMqFixture(); _usersMongoDbFixture = new MongoDbFixture <UserDocument, Guid>("users"); factory.Server.AllowSynchronousIO = true; _eventHandler = factory.Services.GetRequiredService <IEventHandler <SignedUp> >(); }
public ProjectCreatedTests(SpirebyteApplicationFactory <Program> factory) { _rabbitMqFixture = new RabbitMqFixture(); _projectMongoDbFixture = new MongoDbFixture <ProjectDocument, string>("projects"); factory.Server.AllowSynchronousIO = true; _eventHandler = factory.Services.GetRequiredService <IEventHandler <ProjectCreated> >(); }
public GetResourceTests(PaccoApplicationFactory <Program> factory) { _resourceId = Guid.NewGuid(); _mongoDbFixture = new MongoDbFixture <ResourceDocument, Guid>("resources"); factory.Server.AllowSynchronousIO = true; _httpClient = factory.CreateClient(); }
public CreateSprintTests(SpirebyteApplicationFactory <Program> factory) { _rabbitMqFixture = new RabbitMqFixture(); _sprintMongoDbFixture = new MongoDbFixture <SprintDocument, string>("sprints"); _projectMongoDbFixture = new MongoDbFixture <ProjectDocument, string>("projects"); factory.Server.AllowSynchronousIO = true; _commandHandler = factory.Services.GetRequiredService <ICommandHandler <CreateSprint> >(); }
public MongoDbTests(ITestOutputHelper output, MongoDbFixture mongoDb) : base("MongoDB", output) { _mongoDb = mongoDb; SetEnvironmentVariable("OTEL_DOTNET_AUTO_TRACES_ENABLED_INSTRUMENTATIONS", "MongoDb"); SetEnvironmentVariable("OTEL_SERVICE_NAME", "TestApplication.MongoDB"); }
public AddGameEventSourceTests(GameApplicationFactory <Startup> factory, MongoDbFixture <GameEventSource, Guid> mongoDbFixture) { _mongoDbFixture = mongoDbFixture; _mongoDbFixture.CollectionName = "gameEventSources"; factory.Server.AllowSynchronousIO = true; _httpClient = factory.CreateClient(); }
public ForgotPasswordTests(SpirebyteApplicationEndToEndFactory <Program> factory) { var mongoOptions = factory.Services.GetRequiredService <MongoDbOptions>(); _mongoDbFixture = new MongoDbFixture <UserDocument, Guid>("users", mongoOptions); factory.Server.AllowSynchronousIO = true; _httpClient = factory.CreateClient(); }
public AddGameEventSourceTests(GameApplicationFactory <Startup> factory, MongoDbFixture <GameEventSource, Guid> mongoDbFixture) { _rabbitMqFixture = new RabbitMqFixture(); _mongoDbFixture = mongoDbFixture; _mongoDbFixture.CollectionName = Exchange; factory.Server.AllowSynchronousIO = true; }
public GetResourceTests() { _mongoDbFixture = new MongoDbFixture <ResourceDocument, Guid>("resource-test-db", "Resources"); var server = new TestServer(Program.GetWebHostBuilder(new string[] {})); _httpClient = server.CreateClient(); }
public SignInTests(SpirebyteApplicationIntegrationFactory <API.Program> factory) { var mongoOptions = factory.Services.GetRequiredService <MongoDbOptions>(); _mongoDbFixture = new MongoDbFixture <UserDocument, Guid>("users", mongoOptions); factory.Server.AllowSynchronousIO = true; _httpClient = factory.CreateClient(); _passwordService = factory.Services.GetRequiredService <IPasswordService>(); }
public GetIssuesWithoutSprintForProjectTests(SpirebyteApplicationFactory <Program> factory) { _rabbitMqFixture = new RabbitMqFixture(); _sprintMongoDbFixture = new MongoDbFixture <SprintDocument, string>("sprints"); _projectMongoDbFixture = new MongoDbFixture <ProjectDocument, string>("projects"); _issueMongoDbFixture = new MongoDbFixture <IssueDocument, string>("issues"); factory.Server.AllowSynchronousIO = true; _queryHandler = factory.Services.GetRequiredService <IQueryHandler <GetIssuesWithoutSprintForProject, string[]> >(); }
public UpdateIssueTests(SpirebyteApplicationFactory <Program> factory) { _rabbitMqFixture = new RabbitMqFixture(); _issuesMongoDbFixture = new MongoDbFixture <IssueDocument, string>("issues"); _projectsMongoDbFixture = new MongoDbFixture <ProjectDocument, string>("projects"); _usersMongoDbFixture = new MongoDbFixture <UserDocument, Guid>("users"); factory.Server.AllowSynchronousIO = true; _commandHandler = factory.Services.GetRequiredService <ICommandHandler <UpdateIssue> >(); }
public GetIssuesTests(SpirebyteApplicationFactory <Program> factory) { _rabbitMqFixture = new RabbitMqFixture(); _issuesMongoDbFixture = new MongoDbFixture <IssueDocument, string>("issues"); _projectsMongoDbFixture = new MongoDbFixture <ProjectDocument, string>("projects"); _usersMongoDbFixture = new MongoDbFixture <UserDocument, Guid>("users"); factory.Server.AllowSynchronousIO = true; _queryHandler = factory.Services.GetRequiredService <IQueryHandler <GetIssues, IEnumerable <IssueDto> > >(); }
public GetUsersTests(SpirebyteApplicationIntegrationFactory <Program> factory) { var rabbitmqOptions = factory.Services.GetRequiredService <RabbitMqOptions>(); _rabbitMqFixture = new RabbitMqFixture(rabbitmqOptions); var mongoOptions = factory.Services.GetRequiredService <MongoDbOptions>(); _mongoDbFixture = new MongoDbFixture <UserDocument, Guid>("users", mongoOptions); factory.Server.AllowSynchronousIO = true; _queryHandler = factory.Services.GetRequiredService <IQueryHandler <GetUsers, IEnumerable <UserDto> > >(); }
public DataProtectorTokenProviderTests(SpirebyteApplicationIntegrationFactory <Program> factory) { var rabbitmqOptions = factory.Services.GetRequiredService <RabbitMqOptions>(); _rabbitMqFixture = new RabbitMqFixture(rabbitmqOptions); var mongoOptions = factory.Services.GetRequiredService <MongoDbOptions>(); _mongoDbFixture = new MongoDbFixture <UserDocument, Guid>("users", mongoOptions); factory.Server.AllowSynchronousIO = true; _dataProtectorTokenProvider = factory.Services.GetRequiredService <IDataProtectorTokenProvider>(); }
public UpdateUserTests(SpirebyteApplicationIntegrationFactory <Program> factory) { var rabbitmqOptions = factory.Services.GetRequiredService <RabbitMqOptions>(); _rabbitMqFixture = new RabbitMqFixture(rabbitmqOptions); var mongoOptions = factory.Services.GetRequiredService <MongoDbOptions>(); _mongoDbFixture = new MongoDbFixture <UserDocument, Guid>("users", mongoOptions); factory.Server.AllowSynchronousIO = true; _commandHandler = factory.Services.GetRequiredService <ICommandHandler <UpdateUser> >(); }
public SignInTests(SpirebyteApplicationIntegrationFactory <Program> factory) { var rabbitmqOptions = factory.Services.GetRequiredService <RabbitMqOptions>(); _rabbitMqFixture = new RabbitMqFixture(rabbitmqOptions); var mongoOptions = factory.Services.GetRequiredService <MongoDbOptions>(); _mongoDbFixture = new MongoDbFixture <UserDocument, Guid>("users", mongoOptions); factory.Server.AllowSynchronousIO = true; _requestHandler = factory.Services.GetRequiredService <IRequestHandler <SignIn, AuthDto> >(); _passwordService = factory.Services.GetRequiredService <IPasswordService>(); }
public AddResourceTests(PaccoApplicationFactory <Program> factory) { _rabbitMqFixture = new RabbitMqFixture(); _mongoDbFixture = new MongoDbFixture <ResourceDocument, Guid>("resources"); factory.Server.AllowSynchronousIO = true; }
public PermissionTests(ITestOutputHelper testOutputHelper, MongoDbFixture mongoDb) : base(testOutputHelper, mongoDb) { }
public SfuMessagesTest(ITestOutputHelper testOutputHelper, MongoDbFixture mongoDb) : base(testOutputHelper, mongoDb) { }
protected IntegrationTestBase(ITestOutputHelper testOutputHelper, MongoDbFixture mongoDb) { Factory = new CustomWebApplicationFactory(mongoDb, testOutputHelper); Logger = testOutputHelper.CreateTestLogger(); Client = Factory.CreateClient(); }
public CreateConferenceTest(MongoDbFixture mongoDb, ITestOutputHelper testOutputHelper) { _factory = new CustomWebApplicationFactory(mongoDb, testOutputHelper); _client = _factory.CreateClient(); }
protected ServiceIntegrationTest(ITestOutputHelper testOutputHelper, MongoDbFixture mongoDb) : base( testOutputHelper, mongoDb) { Moderator = CreateUser(true, "Vincent"); }
public EquipmentTests(ITestOutputHelper testOutputHelper, MongoDbFixture mongoDb) : base(testOutputHelper, mongoDb) { }
public PollTests(ITestOutputHelper testOutputHelper, MongoDbFixture mongoDb) : base(testOutputHelper, mongoDb) { }
public ConferenceControlTests(ITestOutputHelper testOutputHelper, MongoDbFixture mongoDb) : base( testOutputHelper, mongoDb) { }
public SynchronizedObjectTests(ITestOutputHelper testOutputHelper, MongoDbFixture mongoDb) : base( testOutputHelper, mongoDb) { }
public BreakoutRoomTests(ITestOutputHelper testOutputHelper, MongoDbFixture mongoDb) : base(testOutputHelper, mongoDb) { }