Exemplo n.º 1
0
        public Task <Address> Handle(CreateAddress request, CancellationToken cancellationToken)
        {
            var address1   = Address1.Create(request.Address1);
            var address2   = Address2.Create(request.Address2);
            var city       = City.Create(request.City);
            var state      = State.Create(request.State);
            var postalCode = PostalCode.Create(request.PostalCode);

            var result = Address.Create(address1, address2, city, state, postalCode);

            return(Task.FromResult(result));
        }