Skip to content

Instantly share code, notes, and snippets.

View tucaz's full-sized avatar

tucaz tucaz

View GitHub Profile
[TestMethod]
public void CanSaveAndDeleteAFunctionButNotTheApplication()
{
//Arrange
Application myApp = new Application()
{
Description = "MyApp",
KeyName = "MyApp",
Name = "My App",
Url = "http://www.myapp.com"
/// <summary>
/// Factory de controllers utilizada no lugar da padrão
/// para usar o Unity pra resolver as dependências dos objetos
/// </summary>
public class UnityControllerFactory : DefaultControllerFactory
{
readonly IUnityContainer _container;
public UnityControllerFactory(IUnityContainer container)
{
public class NHibernateHelper
{
private static string _databaseConnectionString;
private static string DatabaseConnectionString
{
get
{
if (String.IsNullOrEmpty(_databaseConnectionString))
{
_databaseConnectionString = ConfigurationUtil.GetDeploymentValue("ConnectionStringProfile");
VENDO
Xbox 360 Pro - Modelo Falcon
Acessórios:
1 Cabo A/C
1 Cabo Vídeo Componente
1 Cabo HDMI
1 HS 60gb
var header = new H3("line", "HON Customer Information")
.Add(new Br());
var div = new Div("indent")
.Add(new CheckBox("checkbox hascc", "chkHasCC"))
.Add(new P("", "Please select this box if your company has a HON assigned customer code.")
.Add(new Span("", " If you need assistance, please ")
.Add(new A("externalLink", "Contact Us", "HREF_MISSING", "_blank"))
)
)
var div = new Div("indent")
.Add(new CheckBox("checkbox hascc", "chkHasCC").Value("true"))
if (isEdit)
{
div.First<CheckBox>().Checked();
}
VENDO
MacBook Pro 13"
Processador Core 2 Duo 2.26GHz
Memória 4 GB 1067 MHz DDR3
VGA NVidia GeForce 9400M
Resolução Máxima 1280 x 800
HD 320 GB
Acompanha:
<Project DefaultTargets="Run" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<!-- ### Import non-default tasks do be used in this build file ### -->
<!--SDC Tasks Library - Open Source pack from: http://sdctasks.codeplex.com/-->
<Import Project="Microsoft.Sdc.Common.tasks"/>
<!-- FTP Task - Open Source task from: http://www.digizzle.com/Projects/FtpTask/Docs.aspx#ftptask -->
<UsingTask AssemblyFile="FtpTask.dll" TaskName="FtpTask"/>
<!-- ### 0 - This is the entry point of this build file. Run all tasks in the correct order ### -->
<Target Name="Run">
<CallTarget Targets="Clean" />
<project name="XXXXXX - HOMOLOG01">
<webURL>http://xxxxx/xxxxxxx/1.0/</webURL>
<modificationDelaySeconds>10</modificationDelaySeconds>
<sourcecontrol type="vsts" autoGetSource="true" applyLabel="true">
<server>https://xxxxxxx:8443/</server>
<username>xxxxxxx</username>
<password>xxxxx</password>
<domain>xxxxxx</domain>
<project>$/xxxx.xxxxx/Trunk</project>
<workingDirectory>C:\Arquivos de programas\CCNET\SourceCodeCheckout</workingDirectory>
[TestClass]
public class dado_uma_nova_reserva_com_produtos_em_estoque
{
[TestInitialize]
public void quando()
{
tenho_produtos_em_estoque();
e_tenho_produto_selecionado();
e_tenho_cliente();
e_tenho_origem();