Exemplo n.º 1
0
        public async Task DeleteData_Test()
        {
            var searchResult = new List <MyModel>()
            {
                new MyModel()
                {
                }
            };

            _dbManager
            .Setup(_ => _.GetAsync(It.IsAny <List <ScanCondition> >()))
            .ReturnsAsync(searchResult);

            var result = _valueController.DeleteData("id123");

            Assert.IsType <OkObjectResult>(result.Result);
        }