コード例 #1
0
        public async Task HandleAsync(SpecialistSignedUp @event, ICorrelationContext context)
        {
            Specialist specialist = new Specialist(@event.Id);

            specialist.Create(@event.FirstName, @event.Surname, @event.Email);
            specialist.SignUp(@event.PracticeId, @event.IsAdmin);

            await _specialistRepo.AddAsync(specialist);
        }