public void Support_testing_assembly_modules_registrations()
        {
            var sut = new MockContainerBuilder();

            var assembly = typeof(MockContainerBuilderAssertions_Should).Assembly;

            sut.RegisterAssemblyModules(assembly);

            sut.Should().RegisterModulesIn(assembly);
            sut.Should().RegisterModule <SampleModule>();
            sut.Should().RegisterModule <SampleModule2>();
        }
        public void Support_testing_module_registration()
        {
            var builder = new MockContainerBuilder();

            builder.RegisterModule <SampleModule>();

            var builderShould = builder.Should();

            builderShould.RegisterModule <SampleModule>();
            builderShould.RegisterModule(typeof(SampleModule));

            builderShould.RegisterModule <SampleModule2>();
        }
Example #3
0
        public void Provide_builder_extension()
        {
            var builder = new MockContainerBuilder();

            builder.Should().Should().BeOfType <MockContainerBuilderAssertions>();
        }