how to call axapta methods in C# dll which is add as reference in Axapta

I have add a .net dll (Test.dll )as a References in AX. and

add Microsoft.Dynamics.BusinessConnectorNet .dll

in Dll (Test .dll) Reference.

i want to call ax static method in dll(Test.dll).

look into this

http://msdn.microsoft.com/en-us/library/aa851743.aspx

Thanks for reply

but

if we write this code in .net windows Aplication then it work .

i want to write in classlibrary(dll) .