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> >();
 }
示例#2
0
        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> >();
 }
示例#5
0
 public GetResourceTests(PaccoApplicationFactory <Program> factory)
 {
     _resourceId     = Guid.NewGuid();
     _mongoDbFixture = new MongoDbFixture <ResourceDocument, Guid>("resources");
     factory.Server.AllowSynchronousIO = true;
     _httpClient = factory.CreateClient();
 }
示例#6
0
 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();
 }
示例#9
0
        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;
 }
示例#11
0
        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>();
        }
示例#13
0
 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> >();
 }
示例#15
0
 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> > >();
 }
示例#16
0
        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> > >();
        }
示例#17
0
        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>();
        }
示例#18
0
        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> >();
        }
示例#19
0
        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;
 }
示例#21
0
 public PermissionTests(ITestOutputHelper testOutputHelper, MongoDbFixture mongoDb) : base(testOutputHelper,
                                                                                           mongoDb)
 {
 }
示例#22
0
 public SfuMessagesTest(ITestOutputHelper testOutputHelper, MongoDbFixture mongoDb) : base(testOutputHelper,
                                                                                           mongoDb)
 {
 }
示例#23
0
 protected IntegrationTestBase(ITestOutputHelper testOutputHelper, MongoDbFixture mongoDb)
 {
     Factory = new CustomWebApplicationFactory(mongoDb, testOutputHelper);
     Logger  = testOutputHelper.CreateTestLogger();
     Client  = Factory.CreateClient();
 }
示例#24
0
 public CreateConferenceTest(MongoDbFixture mongoDb, ITestOutputHelper testOutputHelper)
 {
     _factory = new CustomWebApplicationFactory(mongoDb, testOutputHelper);
     _client  = _factory.CreateClient();
 }
示例#25
0
 protected ServiceIntegrationTest(ITestOutputHelper testOutputHelper, MongoDbFixture mongoDb) : base(
         testOutputHelper, mongoDb)
 {
     Moderator = CreateUser(true, "Vincent");
 }
示例#26
0
 public EquipmentTests(ITestOutputHelper testOutputHelper, MongoDbFixture mongoDb) : base(testOutputHelper,
                                                                                          mongoDb)
 {
 }
示例#27
0
 public PollTests(ITestOutputHelper testOutputHelper, MongoDbFixture mongoDb) : base(testOutputHelper, mongoDb)
 {
 }
示例#28
0
 public ConferenceControlTests(ITestOutputHelper testOutputHelper, MongoDbFixture mongoDb) : base(
         testOutputHelper, mongoDb)
 {
 }
示例#29
0
 public SynchronizedObjectTests(ITestOutputHelper testOutputHelper, MongoDbFixture mongoDb) : base(
         testOutputHelper, mongoDb)
 {
 }
示例#30
0
 public BreakoutRoomTests(ITestOutputHelper testOutputHelper, MongoDbFixture mongoDb) : base(testOutputHelper,
                                                                                             mongoDb)
 {
 }