I am working on a side project to better understand Inversion of Control and Dependency Injection and different design patterns.
I am wondering if there are
Register and resolve them using your Strategy Type strings.
Like this:
// Create container and register types
IUnityContainer myContainer = new UnityContainer();
myContainer.RegisterType("Fedex");
myContainer.RegisterType("DHL");
// Retrieve an instance of each type
IShippingStrategy shipping = myContainer.Resolve("DHL");
IShippingStrategy shipping = myContainer.Resolve("Fedex");