protected XrmTest()
 {
     Controller      = new LogController();
     XrmServiceAdmin = new XrmService(XrmConfiguration, Controller);
 }
        public static void CreateCsv <T>(string path, string name, IEnumerable <T> objects, LogController ui)
        {
            name = GetCsvFileName(name);

            if (objects != null && objects.Any(o => o != null))
            {
                var typeToOutput = objects.First(o => o != null).GetType();

                var propertyNames = typeToOutput.GetReadableProperties().Select(s => s.Name).ToArray();

                CreateCsv(path, name, objects, propertyNames
                          , delegate(string s)
                {
                    return(typeToOutput.GetProperty(s).GetDisplayName());
                }, delegate(object o, string s)
                {
                    return(o.GetPropertyValue(s));
                });
            }
        }
Exemple #3
0
 public XrmService(IXrmConfiguration crmConfig, LogController controller)
 {
     XrmConfiguration = crmConfig;
     _controller      = controller;
 }
Exemple #4
0
 public XrmService(IXrmConfiguration crmConfig)
 {
     XrmConfiguration = crmConfig;
     _controller      = new LogController();
 }
Exemple #5
0
 protected XrmTest()
 {
     Controller = new LogController();
     Controller.AddUi(new DebugUserInterface());
     XrmServiceAdmin = new XrmService(XrmConfigurationAdmin, Controller);
 }