public void CreateInstanceCreateNewDependingObject() { PolicyList policies = new PolicyList(); MockBuilderContext ctx = BuildContext(policies); MockCreateNewDependingObject mockInstance = (MockCreateNewDependingObject) ctx.HeadOfChain.BuildUp(ctx, typeof (MockCreateNewDependingObject), null, null); Assert.IsNotNull(mockInstance); Assert.IsNotNull(mockInstance.DependentObject); }
public MockCreateNewTwoLevelDependingObject([CreateNew] MockCreateNewDependingObject dependentObject) { DependentObject = dependentObject; }
public MockCreateNewTwoLevelDependingObject([CreateNew] MockCreateNewDependingObject dependentObject) { DependentObject = dependentObject; }