Exemplo n.º 1
0
        public async Task WhenAddingNewEventPromoter_ShouldSucceed()
        {
            // SETUP
            Identifier   id   = Identifier.Create();
            PromoterName name = new PromoterName($"test_{nameof(PromoterName)}");

            // EXECUTE
            await this.useCase.Execute(id, name);
        }
Exemplo n.º 2
0
        public async Task Execute(Identifier id, PromoterName name)
        {
            EventPromoter eventPromoter = EventPromoter.Create(id, name);

            await this.repository.Save(eventPromoter);
        }
Exemplo n.º 3
0
 public static EventPromoter Create(Identifier id, PromoterName name)
 {
     return(new EventPromoter(id, name));
 }
Exemplo n.º 4
0
 public EventPromoter(Identifier id, PromoterName name)
 {
     this.Id   = id;
     this.Name = name;
 }