Example #1
0
        public async Task NpsClientDeleteTestAsync()
        {
            Thread.CurrentPrincipal = new ClaimsPrincipal
                                      (
                new ClaimsIdentity
                (
                    new List <Claim>
            {
                new Claim(ClaimTypes.NameIdentifier, "117084294703656960")
            }
                )
                                      );

            var input = new NpsClientDeleteInput
            {
                DeviceUniqueId = "AAAAAAAAAA",
                DeletePorts    = new List <string> {
                    "1111", "2222", "3333"
                }
            };

            var deleteResult = await _npsClientService.DeleteAsync(input);

            Assert.NotNull(deleteResult);
        }
Example #2
0
 public async Task <IExecuteResult> DeleteAsync(NpsClientDeleteInput input)
 {
     return(ExecuteResult.Ok(await _npsClientService.DeleteAsync(input)));
 }