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