Beispiel #1
0
        public void AddRegistrationPassesRegistrationToRegisterer()
        {
            var spyRegisterer        = new SpyRegisterer();
            var registrationInstance = new DummyRegistration();

            Registerer.AddRegistration(spyRegisterer, registrationInstance);

            Assert.That(spyRegisterer.AddedRegistrations, Is.EqualTo(new[] { registrationInstance }));
        }
Beispiel #2
0
        public static void AddRegistration(Registerer registerer, IRegistration registration)
        {
            if (registerer == null)
            {
                throw new ArgumentNullException(nameof(registerer));
            }

            registerer.AddRegistration(registration);
        }