public ViewIntegrationTests(IntegrationTestFixture fixture)
        {
            this.fixture = fixture;
            var data = DataSetGenerator.Run(DateTime.Parse("2017-01-01"), DateTime.Parse("2017-03-31"), "xray");

            var result = fixture.Client.DataSets.Create(DataSet.From("mike", data)).Result;
        }
Exemple #2
0
        public ModelIntegrationTests(IntegrationTestFixture fixture)
        {
            this.fixture = fixture;
            var model = fixture.Client.Models.List(0, 20).GetAwaiter().GetResult().FirstOrDefault();

            if (model == null)
            {
                CreateSession().GetAwaiter().GetResult();
            }
            else
            {
                savedModel = model;
            }
        }
Exemple #3
0
        public SessionIntegrationTests(IntegrationTestFixture fixture)
        {
            this.fixture = fixture;
            var sessions         = fixture.Client.Sessions.List(0, 20).GetAwaiter().GetResult();
            var completedSession = sessions.FirstOrDefault(s => s.Status == Status.Completed);

            if (completedSession == null)
            {
                CreateSession().GetAwaiter().GetResult();
            }
            else
            {
                savedSession = completedSession;
            }
        }
        public ModelIntegrationTests(IntegrationTestFixture fixture)
        {
            this.fixture = fixture;
            var model = fixture.Client.Models.List(new ModelSummaryQuery {
                Page = new PagingInfo(0, 20)
            }).GetAwaiter().GetResult();

            if (model == null)
            {
                CreateSession().GetAwaiter().GetResult();
            }
            else
            {
                savedModel = model.Items.FirstOrDefault();
            }
        }
 public DataSetIntegrationTests(IntegrationTestFixture fixture)
 {
     this.fixture = fixture;
 }
 public ImportIntegrationTests(IntegrationTestFixture fixture)
 {
     this.fixture = fixture;
 }