Ejemplo n.º 1
0
 public void TestInitailize()
 {
     scope = AutofacContainer.GetLifetimeScope();
     List  = scope.Resolve <IValidateObjectList>();
     Child = scope.Resolve <IValidateObject>();
     List.Add(Child);
 }
Ejemplo n.º 2
0
        public void TestInitailize()
        {
            scope       = AutofacContainer.GetLifetimeScope().Resolve <IServiceScope>();
            target      = scope.Resolve <IValidateObjectList>();
            target.ID   = Id;
            target.Name = Name;
            resolver    = scope.Resolve <FatClientContractResolver>();

            child      = scope.Resolve <IValidateObject>();
            child.ID   = Guid.NewGuid();
            child.Name = Guid.NewGuid().ToString();
            target.Add(child);
        }