public void SetUp() { DependencyHelper.AddTransient <IJsonSerializeProxy, JsonSerializeProxy>(); DependencyHelper.AddTransient <IXmlSerializeProxy, XmlSerializeProxy>(); DependencyHelper.ServiceCollection.TryAddSingleton <IInlineMessage, InlineMessage>(); DependencyHelper.ServiceCollection.TryAddTransient <IApiResultHelper, ApiResultDefault>(); }
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(); }
public void SetUp() { DependencyHelper.AddTransient <IJsonSerializeProxy, JsonSerializeProxy>(); }