// TestRootFacade func TestRootFacade(t *testing.T) { assert := assert.New(t) ctx := foundationtest.NewContext() facade := NewRootFacade(ctx) assert.NotNil(facade.GetContext()) }
// TestRootService func TestRootService(t *testing.T) { assert := assert.New(t) ctx := foundationtest.NewContext() service := NewRootService(ctx) assert.NotNil(service.GetContext()) }
// TestAccessor func TestAccessor(t *testing.T) { assert := assert.New(t) var ctx foundation.Context ctx = foundationtest.NewContext() var action string action = GetAction(ctx) assert.Equal("", action) SetAction(ctx, "foo.Bar()") action = GetAction(ctx) assert.Equal("foo.Bar()", action) }