Mocking Azure TableStorage

In these links you will understand how to Mock Azure Table Storage…

Unit Testing and Azure is not an easy job, but it is worth doing it sometimes.

http://blogs.southworks.net/fboerr/2010/07/23/windows-azure-storage-tdd-and-mocks/

http://stackoverflow.com/questions/4636248/how-to-fake-azure-table-storage-in-net-for-unit-testing

http://stackoverflow.com/questions/3291629/unit-testing-code-for-azure

Advertisements
Categories: DEV, Test Tags: ,

Running an EXE in an Azure WebRole

As you can Image running an Exe file on Azure is not a “best practice” bust sometimes you don’t have any other option….

In these 2 articles explain how to use the Local Storage…

http://www.codeproject.com/Articles/331425/Running-an-EXE-in-a-WebRole-on-Windows-Azure

http://stackoverflow.com/questions/5915870/running-native-code-on-azure

Categories: DEV Tags:

How To Use An External Assembly Without Referencing it

var ass = (IClass1) Assembly.LoadFrom(@”testLibrary.dll”).CreateInstance(“testLibrary.Class1”);

Categories: DEV Tags:

Setup SQL 2008 unattended mode

SQLEXPR_x86_ENU.exe /q

/ACTION=Install 

/INSTANCEID="AEEXPRESS"

/INSTANCENAME="AEEXPRESS"

/FEATURES=SQLENGINE,CONN 

/SQLSVCACCOUNT="NT AUTHORITY\SYSTEM" 

/SQLSYSADMINACCOUNTS="BUILTIN\ADMINISTRATORS"

/SQLSVCSTARTUPTYPE="Automatic"

/SECURITYMODE=SQL

/SAPWD=Password01

http://msdn.microsoft.com/en-us/library/ms144259%28v=sql.100%29.aspx#Install

Categories: Infrastructure Tags: ,

MimeTypes for standard video files

<system.webServer>
 <validation validateIntegratedModeConfiguration="false"/> 
<modules runAllManagedModulesForAllRequests="true"/> 
<staticContent> 

<mimeMap fileExtension=".mp4" mimeType="video/mp4" /> 
<mimeMap fileExtension=".ogg" mimeType="audio/ogg" /> 
<mimeMap fileExtension=".oga" mimeType="audio/ogg" /> 
<mimeMap fileExtension=".ogv" mimeType="video/ogg" /> 
<mimeMap fileExtension=".webm" mimeType="video/webm" /> 

</staticContent>
 </system.webServer> 
Categories: Infrastructure Tags: ,

ReProvisioning of Sharepoint WebSites

Do you need to ReProvision your Sharepoint Sites in your farm???

stsadm -o provisionservice -action start -servicetype spwebservice

Categories: Infrastructure

Tuple in .net 4.0

In .net 4.0 we have a new datatype… the Tuple… if you are familiar with software engineer, you know the idea behind it… to have a strongly typed datastructure that cannot be changed during the time…

// Instantiate using constructor 
Tuple<int, string, int> t1 = new Tuple<int, string, int>(4, "Stelio", 7);

// Instantiate using create method 
Tuple<int, int, int> t2 = Tuple.Create(2, 7, 9);
Categories: DEV Tags: