Exemplo n.º 1
0
        public void SetUp()
        {
            applicationEndpoints = A.Fake<IApplicationEndpoints>();
            findModelFromViewCollection = A.Fake<IFindModelFromViewCollection>();

            templateFinder = new EmbeddedTemplateFinder(applicationEndpoints, findModelFromViewCollection);

            A.CallTo(() => applicationEndpoints.GetAssemblies()).Returns(new List<Assembly> { GetType().Assembly });
            A.CallTo(() => findModelFromViewCollection.FindModelType(A<TextReader>.Ignored, A<string>.Ignored)).Returns(typeof(object));
        }
Exemplo n.º 2
0
 public FindModelFromSparkView(IApplicationEndpoints applicationEndpoints)
 {
     this.applicationEndpoints = applicationEndpoints;
 }
Exemplo n.º 3
0
 public EmbeddedTemplateFinder(IApplicationEndpoints applicationEndpoints, IFindModelFromViewCollection findModelFromViewCollection)
 {
     this.applicationEndpoints = applicationEndpoints;
     this.findModelFromViewCollection = findModelFromViewCollection;
 }
Exemplo n.º 4
0
 public Details(IRequestGraph requestGraph, IApplicationEndpoints applicationEndpoints)
 {
     this.requestGraph = requestGraph;
     this.applicationEndpoints = applicationEndpoints;
 }