Exemple #1
0
 public void SetUp()
 {
     DependencyHelper.AddTransient <IJsonSerializeProxy, JsonSerializeProxy>();
     DependencyHelper.AddTransient <IXmlSerializeProxy, XmlSerializeProxy>();
     DependencyHelper.ServiceCollection.TryAddSingleton <IInlineMessage, InlineMessage>();
     DependencyHelper.ServiceCollection.TryAddTransient <IApiResultHelper, ApiResultDefault>();
 }
Exemple #2
0
 static void Main(string[] args)
 {
     DependencyHelper.AddTransient <IJsonSerializeProxy, JsonSerializeProxy>();
     DependencyHelper.AddTransient <IXmlSerializeProxy, XmlSerializeProxy>();
     DependencyHelper.ServiceCollection.TryAddSingleton <IInlineMessage, InlineMessage>();
     DependencyHelper.ServiceCollection.TryAddTransient <IApiResultHelper, ApiResultDefault>();
     Serialize();
     //Serialize2();
     //Serialize3();
     Console.ReadKey();
 }
Exemple #3
0
 public void SetUp()
 {
     DependencyHelper.AddTransient <IJsonSerializeProxy, JsonSerializeProxy>();
 }