I have this code for on ASP.NET MVC website:
x.For<AccountController>().TheDefault.Is.ConstructedBy(() => new AccountController());
This code throws a warning which seems quite self explanatory but for some reason when I use the "Use" method it doesn't seem to work. I know I am doing something wrong and would appreciate some help.
The warning is:
Warning 1 'StructureMap.Configuration.DSL.Expressions.CreatePluginFamilyExpression.TheDefault' is obsolete: '"Prefer the Use() methods"
Thank You.