Пример #1
0
        public void Execute()
        {
            var contextMock = new Mock<IResourceContext>();

            var resource = new ConfigurationResource();

            Assert.NotNull(resource.Execute(contextMock.Object));
        }
Пример #2
0
        public void Execute()
        {
            var contextMock = new Mock<IResourceContext>();
            var configMock = new Mock<IGlimpseConfiguration>();

            var resource = new ConfigurationResource();

            var result = resource.Execute(contextMock.Object, configMock.Object);
            var htmlResourceResult = result as HtmlResourceResult;

            Assert.NotNull(result);
        }