Esempio n. 1
0
        public void ElementRendererManager_GetElementRenderer_ShouldReturnTheResultOfTheTypeOfAPropertyFromTheKernel()
        {
            var formElementRenderer = A.Fake <IFormElementRenderer <TextBox> >();

            Kernel.Bind <IFormElementRenderer <TextBox> >()
            .ToMethod(context => formElementRenderer)
            .InSingletonScope();

            var renderer = _elementRendererManager.GetElementRenderer(new TextBox());

            renderer.Should().Be(formElementRenderer);
        }