public void has_a_dependency_for_the_ifeeddefinition() { var theFeed = new Feed <Address>(); var objectDef = new FeedWriterNode <Address>(theFeed, FeedSourceType.enumerable, typeof(AddressEnumerable)).ToObjectDef(DiagnosticLevel.None); objectDef.DependencyFor <IFeedDefinition <Address> >() .ShouldBeOfType <ValueDependency>().Value.ShouldBeTheSameAs(theFeed); }
public void has_a_dependency_for_the_ifeeddefinition() { var theFeed = new Feed <Address>(); var objectDef = new FeedWriterNode <Address>(theFeed, typeof(AddressEnumerable)) .As <IContainerModel>() .ToObjectDef() .FindDependencyDefinitionFor <IMediaWriter <IEnumerable <Address> > >(); objectDef.DependencyFor <IFeedDefinition <Address> >() .ShouldBeOfType <ValueDependency>().Value.ShouldBeTheSameAs(theFeed); }