private static IDependencyRegistration RegisterRegistration(IDependencyRegister dependencyRegister, IDependencyRegistration registerConfiguration) { if (dependencyRegister == null) { throw new ArgumentNullException(nameof(IDependencyRegister)); } if (registerConfiguration == null) { throw new ArgumentNullException(nameof(registerConfiguration)); } dependencyRegister.RegisterEntry(((DependencyRegistration)registerConfiguration).Entry); return(registerConfiguration); }