public void locate_binding_returns_template_that_match_shared_directories_and_name()
        {
            var bindings = ClassUnderTest.LocateBindings("bindings", _template).ToList();

            bindings.ShouldNotBeNull().ShouldHaveCount(4);

            bindings.ElementAt(0).ShouldEqual(_templates.ElementAt(6));
            bindings.ElementAt(1).ShouldEqual(_templates.ElementAt(4));
            bindings.ElementAt(2).ShouldEqual(_templates.ElementAt(2));
            bindings.ElementAt(3).ShouldEqual(_templates.ElementAt(0));
        }
 public void locate_master_returns_template_that_match_first_shared_directory_and_name()
 {
     ClassUnderTest.LocateMaster("application", _template)
     .ShouldNotBeNull()
     .ShouldEqual(_templates.ElementAt(2));
 }
        public void master_is_the_closest_ancestor_with_the_specified_name_in_shared_1()
        {
            var template = _templateRegistry.First();

            _request.Target = template;

            ClassUnderTest.Bind(_request);
            _templateRegistry.ElementAt(2).ShouldEqual(template.Descriptor.As <ViewDescriptor>().Master);
        }
Exemple #4
0
 private ITemplate templateAt(int index)
 {
     return(_templates.ElementAt(index));
 }