Promact/slack-erp-custom-integration-mvc

View on GitHub
Slack.Automation/Promact.Core.Test/AutofacConfig.cs

Summary

Maintainability
A
2 hrs
Test Coverage

Method RegisterDependancies has 57 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        public static IComponentContext RegisterDependancies()
        {
            var builder = new ContainerBuilder();
            var dataContext = new PromactErpContext(DbConnectionFactory.CreateTransient());
            builder.RegisterInstance(dataContext).As<DbContext>().SingleInstance();
Severity: Major
Found in Slack.Automation/Promact.Core.Test/AutofacConfig.cs - About 2 hrs to fix

    There are no issues that match your filters.

    Category
    Status