Exemplo n.º 1
0
        public void Clear_Removes_All_Registered_Instances()
        {
            // arrange
            DependencyResolver.Register <IEntityService>(new EntityService());

            // act
            DependencyResolver.Clear();

            // assert
            Assert.Throws <InvalidOperationException>(() => DependencyResolver.GetInstance <IEntityService>());
        }
 public PropertyChangeTrackerTests()
 {
     DependencyResolver.Clear();
     DependencyResolver.Register <IEntityMetadataService>(new EntityMetadataService());
     DependencyResolver.Register <IEntityMetadataResolver>(new EntityMetadataResolver());
 }
 public EntityCollectionTests()
 {
     DependencyResolver.Clear();
 }
 public NestedTransactionTests()
 {
     DependencyResolver.Clear();
 }
Exemplo n.º 5
0
 public DependencyResolverTests()
 {
     DependencyResolver.Clear();
 }
Exemplo n.º 6
0
 public EntityMetadataServiceTests()
 {
     DependencyResolver.Clear();
 }
Exemplo n.º 7
0
 public EntityMetadataResolverTests()
 {
     DependencyResolver.Clear();
     TestHelper.SetupEntityMetadataServices();
 }
Exemplo n.º 8
0
 public SessionTests()
 {
     DependencyResolver.Clear();
 }