Example #1
0
        public SpreadsheetCsvWriterTests(ITestOutputHelper output,
                                         CremaServerTestFixture fixture)
        {
            this.output  = output;
            this.fixture = fixture;

            this.output.WriteLine($"RepositoryPath: {fixture.CremaHost.RepositoryPath}");
        }
Example #2
0
        public CremaClientTestFixture()
        {
            this.ServerHost = new CremaServerTestFixture();

            var bootstrap = new CremaBootstrapper();

            this.CremaHost = (ICremaHost)bootstrap.GetService(typeof(ICremaHost));
        }
        public TableUpdateRevisionTests(ITestOutputHelper output,
                                        CremaServerTestFixture fixture)
        {
            this.output  = output;
            this.fixture = fixture;

            this.output.WriteLine($"RepositoryPath: {fixture.CremaHost.RepositoryPath}");
        }
Example #4
0
        public static IDataBase InitDataBase(this CremaServerTestFixture fixture, string databaseName)
        {
            var cremaHost = fixture.CremaHost;

            return(cremaHost.Dispatcher.Invoke(() =>
            {
                var database = GetOrCreateDataBase(cremaHost, databaseName);
                return database;
            }));
        }
Example #5
0
        public static (Authentication, IDataBase) InitDataBaseAndUser(this CremaServerTestFixture fixture, string databaseName, string userId, string password)
        {
            var cremaHost = fixture.CremaHost;

            var database = InitDataBase(fixture, databaseName);

            return(cremaHost.Dispatcher.Invoke(() =>
            {
                var user = GetOrCreateUser(cremaHost, userId, password);
                var authentication = cremaHost.Login(userId, password.ToSecureString());

                database.Enter(authentication);

                return (authentication, database);
            }));
        }
 public TypesApiController_TypeRevisionTests(ITestOutputHelper output,
                                             CremaServerTestFixture fixture)
 {
     this.output  = output;
     this.fixture = fixture;
 }
 public TypeUpdateRevisionTests(ITestOutputHelper output,
                                CremaServerTestFixture fixture)
 {
     this.output  = output;
     this.fixture = fixture;
 }
Example #8
0
 public TableDetailInfoTests(ITestOutputHelper output,
                             CremaServerTestFixture fixture)
 {
     this.output  = output;
     this.fixture = fixture;
 }
Example #9
0
 public QueryTests(ITestOutputHelper output,
                   CremaServerTestFixture fixture)
 {
     this.output  = output;
     this.fixture = fixture;
 }
Example #10
0
 public RuntimeServiceTests(ITestOutputHelper output,
                            CremaServerTestFixture fixture)
 {
     this.output  = output;
     this.fixture = fixture;
 }
 public SvnRevisionInfoEventArgsTests(ITestOutputHelper output,
                                      CremaServerTestFixture fixture)
 {
     this.output  = output;
     this.fixture = fixture;
 }
 public TableTemplateIgnoreCaseSensitiveTests(ITestOutputHelper output,
                                              CremaServerTestFixture fixture)
 {
     this.output  = output;
     this.fixture = fixture;
 }
Example #13
0
 public static (Authentication, IDataBase) InitDataBaseAndUser(this CremaServerTestFixture fixture, string databaseName, string userId)
 {
     return(InitDataBaseAndUser(fixture, databaseName, userId, userId));
 }