Exemplo n.º 1
0
        public void GetBannerTemplate()
        {
            GivenServiceLocator();
            GivenBannerController();

            WhenAddTemplate();
            var templates = _bannerController.GetAllTemplates(new GetBannerTemplatesReq()
            {
                PageSize = 10,
            });

            new TemplateVariable
            {
                VarName = "image",
                VarType = "Image(100,200)"
            }
            .ToExpectedObject()
            .ShouldEqual(templates[0].Variables[0]);
        }