Beispiel #1
0
        public async Task Should_Create_A_New_Common_User()
        {
            var result = await _service.CreateAsync(new CreateCommonUserDto
            {
                Name        = "jack",
                Description = "wow, it's awesome",
                Email       = "*****@*****.**",
                Phone       = "15338593769",
                Role        = "admin",
                Sex         = "boy"
            });

            result.ShouldNotBe(null);
        }
Beispiel #2
0
 public async Task <CommonUserDto> CreateAsync([FromBody] CreateCommonUserDto input)
 {
     return(await _service.CreateAsync(input));
 }