This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.ComponentModel; | |
using PostSharp.Aspects; | |
using PostSharp.Aspects.Advices; | |
using PostSharp.CodeModel; | |
using PostSharp.Extensibility; | |
namespace VanAOP.PostSharp._4to | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Test] | |
public void CargaDepositos() | |
{ | |
CommitInNewSession(s => | |
{ | |
s.Save(new Deposito { Nombre = "Puesto" , Fisico = true}); | |
s.Save(new Deposito {Nombre = "Galpon", Fisico = true}); | |
s.Save(new Deposito { Nombre = "Abc" , Fisico = false}); | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Linq; | |
using BCS.Domain.Entities; | |
using NUnit.Framework; | |
namespace BCS.DAO.NHibernate.Tests | |
{ | |
[TestFixture] | |
public class NationalitiesDaoTests | |
{ | |
[Test] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using Mapper.Tests.SampleDomain; | |
using NUnit.Framework; | |
using SharpTestsEx; | |
namespace Mapper.Tests | |
{ | |
[TestFixture] | |
public class SimpleTests | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using Mapper.Tests.SampleDomain; | |
using NUnit.Framework; | |
using SharpTestsEx; | |
namespace Mapper.Tests | |
{ | |
[TestFixture] | |
public class SimpleTests | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//error con jquery-ujs | |
jose@ubu-dev:~/Sites$ rails new mongosample -JOT -m /home/jose/Sites/templates/rails-templater/templater.rb | |
create | |
create README | |
create Rakefile | |
create config.ru | |
create .gitignore | |
create Gemfile | |
create app |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Dynamic; | |
using System.Linq; | |
using System.Reflection; | |
using Microsoft.CSharp.RuntimeBinder; | |
using NUnit.Framework; | |
using SharpTestsEx; | |
namespace SampleMixin | |
{ | |
public class Foo |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Test | |
[TestMethod] | |
public void CanLookupForManufacturerWhenChangingTheManufacturerCode() | |
{ | |
var backend = new Mock<IBackend>(); | |
backend.Setup(be => be.SendAndReceive<GetEntityResponse<CustomerDetailsDto>>(It.Is<GetCustomerByCodeRequest>(re => re.Code == "123"))) | |
.Returns(new GetEntityResponse<CustomerDetailsDto> { Entity = new CustomerDetailsDto { CodeFld = "123", Name = "Tito Fuentes", Id = 123 } }); | |
var editViewModel = new EditArticleViewModel |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Test | |
[TestMethod] | |
public void CanLookupForManufacturerWhenChangingTheManufacturerCode() | |
{ | |
var backend = new Mock<IBackend>(); | |
backend.Setup(be => be.SendAndReceive<GetEntityResponse<CustomerDetailsDto>>(It.Is<GetCustomerByCodeRequest>(re => re.Code == "123"))) | |
.Returns(new GetEntityResponse<CustomerDetailsDto> { Entity = new CustomerDetailsDto { CodeFld = "123", Name = "Tito Fuentes", Id = 123 } }); | |
var editViewModel = new EditArticleViewModel |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<services> | |
<service name="Agatha.ServiceLayer.WCF.WcfRequestProcessor" behaviorConfiguration="RequestProcessorBehavior"> | |
<endpoint address="" contract="Agatha.Common.WCF.IWcfRequestProcessor" binding="basicHttpBinding" bindingConfiguration="RequestProcessorBinding" /> | |
</service> | |
<service name="System.Web.ApplicationServices.AuthenticationService" behaviorConfiguration="AppServiceBehaviors"> | |
<endpoint contract="System.Web.ApplicationServices.AuthenticationService" binding="basicHttpBinding" bindingConfiguration="userHttp" bindingNamespace="http://asp.net/ApplicationServices/v200" /> | |
</service> | |
</services> | |
<bindings> |