1
Reply

below code is not executing please help

Barkha Shukla

Barkha Shukla

Jan 4 2015 11:11 PM
592
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);
    }
}

Answers (1)