Skip to content

Instantly share code, notes, and snippets.

View jfromaniello's full-sized avatar
😀
coding

José F. Romaniello jfromaniello

😀
coding
View GitHub Profile
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
{
[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});
});
using System.Linq;
using BCS.Domain.Entities;
using NUnit.Framework;
namespace BCS.DAO.NHibernate.Tests
{
[TestFixture]
public class NationalitiesDaoTests
{
[Test]
using System;
using Mapper.Tests.SampleDomain;
using NUnit.Framework;
using SharpTestsEx;
namespace Mapper.Tests
{
[TestFixture]
public class SimpleTests
{
using System;
using Mapper.Tests.SampleDomain;
using NUnit.Framework;
using SharpTestsEx;
namespace Mapper.Tests
{
[TestFixture]
public class SimpleTests
{
//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
using System.Dynamic;
using System.Linq;
using System.Reflection;
using Microsoft.CSharp.RuntimeBinder;
using NUnit.Framework;
using SharpTestsEx;
namespace SampleMixin
{
public class Foo
//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
//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
<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>