Exemple #1
0
        public void SetupFaultInjectionMagic()
        {
            var connectionInfo = ConnectionInfo.FromAppConfig("PostsDB");

            postDataAccessOverriden = new PostDataAccess(connectionInfo);
            MongoRepositoryHelper.DynamicOverride(postDataAccessOverriden, OnFault);
        }
Exemple #2
0
 public void TeardownFaultInjectionMagic()
 {
     MongoRepositoryHelper.DynamicRestore(postDataAccessOverriden);
 }