public class Assembly
{
static void Main(string[] args)
{
Assembly assembly = new Assembly();
var myAssembly =Assembly.Load(@"D:\MyLabBeDevelopmet1.0\eI.Mylan.Test\bin\Debug\eI.Mylan.MongoDBLogger.dll");
var eventNotifierObj = Activator.CreateInstance("eI.Mylan.MongoDBLogger.Logger"," eI.Mylan.MongoDBLogger.dll");
EventNotifier.IEventNotifier eventNotifier = eventNotifierObj as EventNotifier.IEventNotifier;
eventNotifier.Log(FinalXML);
}
public class MongoAssemblyTest
{
[TestMethod]
public void TestMethod1()
{
Assembly assembly = new Assembly();
var Assembly = Assembly.Load(@"D:\MyLabBeDevelopmet1.0\Test\bin\Debug\MongoDBLogger.dll");
var eventNotifierObj = Activator.CreateInstance("MongoDBLogger.Logger"," MongoDBLogger.dll");
EventNotifier.IEventNotifier eventNotifier = eventNotifierObj as EventNotifier.IEventNotifier;
eventNotifier.Log(FinalXML);
}
}