public void Apply_WhenNamespaceHasFolderName_ShouldReturnPath(Type controller, string expectedPath)
        {
            var options        = new FeatureFolderOptions();
            var service        = new FeatureFolderControllerModelConvention(options);
            var controllerType = controller.GetTypeInfo();
            var attributes     = new List <string>();
            var model          = new ControllerModel(controllerType, attributes);

            service.Apply(model);

            var path = model.Properties[Constants.ControllerPropertyKey];

            Assert.Equal(path, expectedPath);
        }
        public void Apply_WhenNamespaceDontHasFolderName_ShouldReturnEmptyString(Type controller)
        {
            var options = new FeatureFolderOptions()
            {
                FeatureFolderName = "SomeFolder"
            };
            var service        = new FeatureFolderControllerModelConvention(options);
            var controllerType = controller.GetTypeInfo();
            var attributes     = new List <string>();
            var model          = new ControllerModel(controllerType, attributes);

            service.Apply(model);

            var path = model.Properties[Constants.ControllerPropertyKey];

            Assert.Equal(String.Empty, path);
        }