コード例 #1
0
 public void TestInitailize()
 {
     scope       = AutofacContainer.GetLifetimeScope().Resolve <IServiceScope>();
     target      = scope.Resolve <IBaseObject>();
     target.ID   = Id;
     target.Name = Name;
     resolver    = scope.Resolve <FatClientContractResolver>();
 }
コード例 #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);
        }