Slack.Automation/Promact.Core.Test/AutofacConfig.cs
Method RegisterDependancies
has 57 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static IComponentContext RegisterDependancies()
{
var builder = new ContainerBuilder();
var dataContext = new PromactErpContext(DbConnectionFactory.CreateTransient());
builder.RegisterInstance(dataContext).As<DbContext>().SingleInstance();