Пример #1
0
        protected void Application_Start(object sender, EventArgs e)
        {
            //JsonSerializerSettings settings = HttpConfiguration.Formatters.JsonFormatter.SerializerSettings;
            //IsoDateTimeConverter dateConverter = new IsoDateTimeConverter
            //{
            //    DateTimeFormat = "yyyy'-'MM'-'dd'T'HH':'mm':'ss.fff'Z'"
            //};
            //settings.Converters.Add(dateConverter);
            RegisteUnity.RegisterForDefault();

            var path    = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "App_Data");
            var fileMap = Path.Combine(path, "CatConfig.xml");

            Cat.Initialize(fileMap);
        }
 public ProcessInfoDomainTest()
 {
     RegisteUnity.RegisterForDefault();
     RegisteUnity.Current.BuildUp <ProcessInfoDomainTest>(this as ProcessInfoDomainTest);
 }
Пример #3
0
 public TestDomainBase()
 {
     RegisteUnity.RegisterForDefault();
     RegisteUnity.Current.BuildUp <T>(this as T);
 }
Пример #4
0
 private static void DefaultRegiest()
 {
     RegisteUnity.RegisterForDefault();
 }
Пример #5
0
 public WorkFlowTaskServiceTest()
 {
     RegisteUnity.RegisterForDefault();
     RegisteUnity.Current.BuildUp <WorkFlowTaskServiceTest>(this as WorkFlowTaskServiceTest);
 }