Creating A Mock Configuration Setup?

Nov 29, 2011

The program I am building requires a lot of initial user input. I was wanting to stream line this by creating a 'config' file so to speak that after the user enters all the initial data they can click a button that will save their entries into a secure file. When they leave for the day and come back they can click the load button and it auto fills in all the relevant data that will be stored in the file.

Still digging through the MSDN for help, but no luck on options yet.

I was thinking save the information to a text file somehow, but passwords will be stored and I would like to make it secure if possible.

View 7 Replies


ADVERTISEMENT

Creating Get/Set Properties For Interfaces And Using Them In Mock Objects?

Jan 19, 2009

I am having trouble assigning values to the properties defined in the mock objects.

Public Interface IAddCustomerView
Property FirstName() As String
Property LastName() As String
Property Message() As String
End Interface

My unit test below always fails saying that getMessage was never called:

<Test()> _
Public Sub Should_Display_A_Success_Message()
_presenter = New AddCustomerPresenter(_view, _repositoryStub)

[code]....

View 1 Replies

"Expected Invocation On The Mock At Least Once But Was Never Performed" Error When Setting Up The Mock

Oct 26, 2011

I'm getting this error from Moq via NUnit, and it doesn't make much in the way of sense to me. "Expected invocation on the mock at least once, but was never performed: x => x.DeleteItem(.$VB$Local_item)"

[Code]...

View 1 Replies

.net 4.0 - ASP.NET 4.0 Custom Configuration Section: "An Error Occurred Creating The Configuration Section Handler"

May 2, 2012

I am creating a custom config section that will allow me to manage what ELMAH exceptions I want to ignore from my VB.NET/ASP.NET app. Here's my code. I made it easy to paste in a blank code file if anyone's up to the challenge of diagnosing the problem.

CODE:

When I execute this code:

CODE:

I get the error An error occurred creating the configuration section handler for IgnoredExceptionSection: Could not load file or assembly 'WEB' or one of its dependencies..

What boggles my mind is that this all works fine in my C# console test app after I convert the code from VB.NET using a web utility. However, when I paste the VB code from my web app into my VB.NET console test app, it doesn't work there, either, so it appears to be a C#/VB issue. What am I doing wrong here?

View 1 Replies

Error Creating Configuration Object

Jan 5, 2010

I create a Visual Basic .net console application where my file paths are in the app.config file. When I run it from a command prompt a windows scheduler it works fine. When I run it from a purchased job scheduler, I get a message stating that it cannot find MyAppli~.config. MyApplication.config is present.[code]...

View 1 Replies

Error Creating The Web Proxy Specified In The 'system.net/defaultproxy' Configuration Section?

Aug 17, 2009

I am working with a old windows app (vb.net), this was working fine before with the old out look (owa) now we moved to 2010 outlookweb acess, after movingis application is unable to sync the exchange applications to web.

Dim
req As
Net.HttpWebRequest

[code].....

View 3 Replies

IDE :: Error Creating The Web Proxy Specified In The 'system.net/defaultproxy' Configuration Section?

Aug 5, 2010

IDE :: error creating the web proxy specified in the 'system.net/defaultproxy' configuration section.

View 6 Replies

'ConfigurationManager' Is Not A Member Of 'Configuration' Even When A Reference To System.Configuration.dll Is Added To Project?

Nov 16, 2010

Receive 'ConfigurationManager' is not a member of 'Configuration' in VS2008.I read all of the topics in the forum about this error Tried adding areference to System.Configuration.dll to the project and an "Imports System.Configuration" to the vb file.Still get an error

View 7 Replies

Creating A Setup File?

Jun 5, 2011

i have design my windows application in visual studio 2008 and i used crystal reports 2008.now i created a set up file which runs correctly in my system but when i run on other system its not running . tell me detail procedure (means step by step procedure) to create set up n which file to run on other system.

View 1 Replies

Creating A Setup Wizard?

Jul 11, 2011

how I can create a Setu Wizard

View 5 Replies

Creating Setup Of Vb2008?

Apr 26, 2010

I have developed a s/w using acces and sqlserver 2008 and now trying to make a setup file. How could be the possible way?? I tried in VS2008 software and development. But after installing from the msi file and running the s/w it shows an error "Microsoft.ACE.OLEDB.12.0 provider is not registered

View 1 Replies

Publishing App In .net And Creating Setup.exe?

Apr 11, 2010

i am publishing an app in vb.net. it's creating setup.exe and a folder called application files. i am told that setup.exe is stand alone and does not need any other files. is this right? because when i put setup.exe in a different directory it says that some files are missing.

View 1 Replies

Creating Custom Folder With Setup?

Jul 20, 2009

I want to create a folder " c:imagebox " when the user runs my setup. I tried this in " Add special folder --> Custom folder " then a folder appears i renamed it to ImageBox and in default location i typed " C: " and set its property to always create but when i tested the setup on xp an vista i did not created any folder.

View 1 Replies

Creating Setup In .net 2008 With Access Db?

Sep 30, 2009

Actually i have created setup but when it comes to connecton string that for access db i have written

View 2 Replies

Creating Setup Using VB2008 And Sqlserver2008

Apr 26, 2010

I have developed a s/w using vb.net and sqlserver 2008 and now trying to make a setup file. How

could be the possible way?? so that it could be installed in other computers.

View 1 Replies

How To Add Product Key To Application While Creating Setup

Apr 1, 2011

How I can add product key or serial key to my application while creating setup.

View 9 Replies

Deployment - Creating A Setup Project And Building?

Jun 21, 2009

When i am creating a setup project and building it then i am getting a setup file using which if i install then it is getting installed to single user only i want the setup to build run for every user in that system and the users can access it.

View 1 Replies

Change Connection String After Creating A Setup Project?

Jun 13, 2011

I am creating a VB windows form applications , the working can be summarized as users fills some form and data is saved in sql server database.Now the problem i am facing is that i have to deliver this as a setup file to someone, and that person will further distribute it to different users to run on their PC, what i am thinking is that the code once installed on other computers and executed will give errors because of the connection string of sql server db as it will not match with that computer . I know that if a distribute projects i can put connection string in app.config and every user can change it according to his/her machine .But as i am giving a setup file how to solve this problem

View 1 Replies

Creating An Executable File Using INNO SETUP Compiler 5.3.8

Aug 2, 2010

i have a problem when i create an executable file of my application created using VisualStudio 2010 and MSAccess 2010. I instal the application and I create a shortcut but when i run the application an error is generated saying that the Data Base file is not found in the same directory of the shortcut (when i create a shortcut in desktop : BD.accdb not found in C:UsersAchrafDesktopBD.accdb or when i run the application from Start-> all programs-> MyApp :BD.accdb not found in C:WindowsSystem32BD.accdb) .

View 2 Replies

Creating Database And Connection String While Setup Or Initializing?

Mar 26, 2012

I am creating a desktop application in vb.net by using visual studio 2008 and using ms sql 2008 as back end for my database.As I am creating application on my own system I know my connection string and I have created database manually on my system.

What I want is, when user install application on its system, the database created dynamically at that time on his system and he must enter server name, username and password for ms sql server that application should store for future use.If not at installation, it should atleast check and create database, everytime the user open the application.

View 2 Replies

VS 2005 To Load Datagridview After Creating Setup File?

Jun 12, 2012

I have create setup for my project, when i tried to open the form which contain datagridview on it. It give me this error. Here is the attachment screen shot of the error.How to solve this error.

View 12 Replies

Process Of Creating A Setup And Deployment Project For Windows Application?

Jun 22, 2010

Step-by-Step Process of Creating a Setup and Deployment Project for windows application

View 2 Replies

Build Setup File With Creating Icons In Desktop And Quick Launch Bar?

May 17, 2009

how can i get the folder path for the system tray or how can i buid a setup file that install a icon in the system tray using VS 2005.I know how to build setup file with creating icons in desktop and quick launch bar, but wanted to know how to add the icon into system tray after i install it

View 1 Replies

Creating A Crystal Reports Project - Setup The Login To Database Function?

Jan 31, 2010

I am creating a visual basic project for class. It is all running as intended though I am not sure how to set up the login to database function. When you click the link for the specific report it should display the page. But I get a login to database page. I am just wondering how I set that up so that one can actually see the information. ie:

[Code]...

View 1 Replies

Could Not Run Unit Test With Mock

Apr 18, 2012

I tried to make an unit test for this method which is pretty simple only add an object into the data base and if it works well returns true

[Code]...

View 1 Replies

Mvc - MOQ: Can't Cast Moq.Mock To Interface In .Net

Nov 3, 2010

i am writing a simple unit test to check if the proper view name is being returned by an ActionResult in VB.Net MVC 1. The controller requires a service and I am trying to Mock the service but keep getting this error.Unable to cast object of type 'Moq.Mock`1[SRE.Web.Mvc.INotificationService]' to type 'SRE.Web.Mvc.INotificationService'.As I said, the simple and im not sure where to go from here.

<Test()> _
Public Sub Index_Properly_Validates_Email_Address()
'Arrange
Dim fakeNotifcationService As New Mock(Of INotificationService)(MockBehavior.Strict)

[code]....

View 2 Replies

C# - Creating A Custom Start Menu Shortcut Link For A Visual Studio Setup Project

Feb 24, 2010

Is it possible to create a custom start menu shortcut link?

The only possibilities I see in the setup project are shortcuts to folders or primary output.

Update:

What I ended up doing is creating a custom action on commit that dynamically creates the link using Windows Scripting Host. Then on uninstall, removing the link.

View 1 Replies

How To Mock Method Of A Class Under Test With MOQ

Sep 15, 2011

I have a service class that i want to unit test. The service calls a repository class method in order to save some data. But before I call the save method, I have a validate method that belongs to the service class under test which validates the properies of the class to be persisted as a parameter to the repository save method.I know that to verify that the repository save method is called, i have to mock the repository class and set up the save method, but how do i verify that the validate method belonging to the service class under test is called when unit testing the method under test since they belong to the same class?

View 2 Replies

Mock An Interface Property With JustMock In Program?

Jun 6, 2011

I am using JustMock to mock interfaces for unit testing, but perhaps I'm not doing it right.[code]...

I want to mock this interface and set that property so that it can be read by consumers of the interface.Beginning with[code]...

View 1 Replies

Partial Mock Of A Class With Private Constructor

Sep 9, 2011

I am trying to write some unit tests on a class that looks like this, using Moq [code] the parameterized constructor is private or internal one of the two methods relies on the result of the other.I want to check that when GetThisOrThat is called with a value, it actually calls GetThis. But I also want to mock GetThis so that it returns a specific well-known value.To me this is an example of Partial Mocking, where we create a Mock based on a class, passing the parameters for the constructor. The problem here is that there is no public constructor, and therefore, Moq can not call it..I tried using the Accessors generated by Visual Studio for MSTest, and use those accessors for the mocking, and this is what I came up with [code]

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved