Ejemplo n.º 1
0
 public AdService(IAdDomainService adDomainService,
                  IAdReadRepository adRepository,
                  IPostalCodeAdapter postalCodeAdapter)
 {
     this.adDomainService   = adDomainService;
     this.adRepository      = adRepository;
     this.postalCodeAdapter = postalCodeAdapter;
 }
Ejemplo n.º 2
0
            public void SetUp()
            {
                this.ads = new List <Ad>()
                {
                    new Ad(new AdId("Ad1_" + Guid.NewGuid()),
                           new Domain.Core.Model.Money(AMOUNT_MONEY_AD_1, new Domain.Core.Model.Currency(Domain.Core.Model.Currency.IsoCode.EUR)),
                           new Domain.Core.Model.Coords(1.34343432, 3.44546),
                           new Domain.Core.Model.PostalCode("08150")),

                    new Ad(new AdId("Ad2_" + Guid.NewGuid()),
                           new Domain.Core.Model.Money(AMOUNT_MONEY_AD_2, new Domain.Core.Model.Currency(Domain.Core.Model.Currency.IsoCode.EUR)),
                           new Domain.Core.Model.Coords(1.34343432, 3.44546),
                           new Domain.Core.Model.PostalCode("08759"))
                };

                this.adDomainService = new AdDomainService();
            }