public void DefaultPageOptions_HasDefaultPath() { // Arrange & act var options = new ElmOptions(); // Assert Assert.Equal(DefaultPath, options.Path.Value); }
public IntegrationTestUserStore() { //var driver = new MicrosoftSqlServerDriver(); var driver = new SqliteDriver(); ElmOptions options = new ElmOptions { ConnectionString = "Data Source=:memory:" //ConnectionString = "Server=SIDOTRON2\\SQLEXPRESS;Database=test;Integrated Security=True" }; this.connection = new FolkeConnection(driver, new Mapper(), new OptionsWrapper <ElmOptions>(options)); }
private Tuple <ElmLogger, ElmStore> SetUp(Func <string, LogLevel, bool> filter = null, string name = null) { // Arrange var store = new ElmStore(); var options = new ElmOptions() { Filter = filter ?? _filter }; var provider = new ElmLoggerProvider(store, options); var logger = (ElmLogger)provider.CreateLogger(name ?? _name); return(new Tuple <ElmLogger, ElmStore>(logger, store)); }
static void Main(string[] args) { var mapper = new Mapper(); var table = mapper.GetTypeMapping <Table>(); table.ToTable("Blabla"); table.HasKey(x => x.Id); var elmOptions = new ElmOptions { ConnectionString = "Data Source=:memory:" }; var folke = new FolkeConnection(new SqliteDriver(), mapper, new OptionsWrapper <ElmOptions>(elmOptions)); folke.CreateTable <Table>(); folke.Save(new Table()); }