예제 #1
0
        public void BuildContainer_ContainerHasAllExpectedServices(
            ContainerBuilder builder,
            RepositoryModule sut)
        {
            // Given
            var expectedServices = new[] { typeof(IUnitOfWork), typeof(IRepository<>) };

            // When
            builder.RegisterModule(sut);
            var container = builder.Build();

            // Then
            Assert.True(expectedServices.All(container.IsRegistered));
        }
예제 #2
0
 public void Constructor_SutIsModule(RepositoryModule sut)
 {
     // Then
     Assert.IsAssignableFrom<IModule>(sut);
 }