コード例 #1
0
        public Task <GetUserByIdResult> ExecuteAsync(GetUserByIdParameters parameters, CancellationToken cancellationToken = default)
        {
            var data = new User
            {
                Id             = Guid.Parse("77a33260-0000-441f-ba60-b0a833803fab"),
                Gender         = GenderType.Female,
                FirstName      = "Hallo",
                LastName       = "Hallo1",
                Email          = "*****@*****.**",
                Color          = ColorType.Red,
                HomeAddress    = new Address(),
                CompanyAddress = new Address(),
            };

            return(Task.FromResult(GetUserByIdResult.Ok(data)));
        }
コード例 #2
0
        public Task <GetUserByIdResult> ExecuteAsync(GetUserByIdParameters parameters, CancellationToken cancellationToken = default)
        {
            var data = new User
            {
                Id          = Guid.Parse("77a33260-0000-441f-ba60-b0a833803fab"),
                Gender      = GenderType.Female,
                FirstName   = "Hallo1",
                LastName    = "Hallo2",
                Email       = "*****@*****.**",
                Homepage    = new Uri("http://www.dr.dk"),
                Color       = ColorType.Red,
                HomeAddress = new Address
                {
                    StreetName   = "Hallo",
                    StreetNumber = "Hallo1",
                    PostalCode   = "Hallo2",
                    CityName     = "Hallo3",
                    MyCountry    = new Country
                    {
                        Name       = "Hallo1",
                        Alpha2Code = "Ha",
                        Alpha3Code = "Hal",
                    },
                },
                CompanyAddress = new Address
                {
                    StreetName   = "Hallo",
                    StreetNumber = "Hallo1",
                    PostalCode   = "Hallo2",
                    CityName     = "Hallo3",
                    MyCountry    = new Country
                    {
                        Name       = "Hallo1",
                        Alpha2Code = "Ha",
                        Alpha3Code = "Hal",
                    },
                },
            };

            return(Task.FromResult(GetUserByIdResult.Ok(data)));
        }