public void SetupFaultInjectionMagic() { var connectionInfo = ConnectionInfo.FromAppConfig("PostsDB"); postDataAccessOverriden = new PostDataAccess(connectionInfo); MongoRepositoryHelper.DynamicOverride(postDataAccessOverriden, OnFault); }
public void Setup() { // Instantiate the data access for posts var connectionInfo = ConnectionInfo.FromAppConfig("PostsDB"); postDataAccess = new PostDataAccess(connectionInfo); }
public PostLogic() { postdataAccess = new PostDataAccess(); }
public HomeController(IPostDataAccess postdataccess, IAuthorizationService authorization) { this._postDataAccess = postdataccess; this._authorization = authorization; }
public PostBLL(IPostDataAccess blogDataAccess) { _postDataAccess = blogDataAccess; }
public PostController(IPostDataAccess ipostDataAccess) { _ipostDataAccess = ipostDataAccess; }