Beispiel #1
0
        public async Task Test()
        {
            EnumInDto inDto = new EnumInDto()
            {
                EnumTypeName = "SexTypeEnum",
                Module       = "Demo"
            };
            var list = await _enumAppService.GetEnumArray(inDto);

            string aa = "222";
        }
Beispiel #2
0
        public async Task Test1()
        {
            EnumInDto inDto = new EnumInDto()
            {
                EnumTypeName = "SexTypeEnum",
                Module       = "Demo"
            };
            string              json    = JsonConvert.SerializeObject(inDto);
            StringContent       content = new StringContent(json, Encoding.UTF8, "application/json");
            HttpResponseMessage result  = await _fixture.Client.PostAsync("/api/PublicService/GetEnumArray", content);

            string bb = await result.Content.ReadAsStringAsync();

            string asd = "";
        }
        public async Task <List <EnumOutDto> > GetEnumArray(EnumInDto inDto)
        {
            var result = await this._enumAppService.GetEnumArray(inDto);

            return(await Task.FromResult(result));
        }