public void SetupFaultInjectionMagic() { var connectionInfo = ConnectionInfo.FromAppConfig("PostsDB"); postDataAccessOverriden = new PostDataAccess(connectionInfo); MongoRepositoryHelper.DynamicOverride(postDataAccessOverriden, OnFault); }
public void TeardownFaultInjectionMagic() { MongoRepositoryHelper.DynamicRestore(postDataAccessOverriden); }