Begin() public method

public Begin ( ) : void
return void
    public void Write_good()
    {
        var db  = new Database();
        var orm = new Orm(db);

        orm.Begin();
        orm.Write("good write");
        object[] actual = { db.DbState, db.lastData };
        Assert.Equal(new object[] { Database.State.DataWritten, "good write" }, actual);
    }
    public void Commit_bad()
    {
        var db  = new Database();
        var orm = new Orm(db);

        orm.Begin();
        orm.Write("bad commit");
        orm.Commit();
        object[] actual = { db.DbState, db.lastData };
        Assert.Equal(new object[] { Database.State.Closed, "bad commit" }, actual);
    }
    public void Disposable()
    {
        var db  = new Database();
        var orm = new Orm(db);

        orm.Begin();
        orm.Write("good data");
        var disposable = Assert.IsAssignableFrom <IDisposable>(orm);

        disposable.Dispose();
        object[] actual = { db.DbState, db.lastData };
        Assert.Equal(new object[] { Database.State.Closed, "good data" }, actual);
    }