Exemple #1
0
        public async Task GetUserAddressById()
        {
            //Arrange
            var controller = new UserPushLocationController(_dao, _authService);

            //Act
            var result = await controller.Get(1);

            //Assert
            var viewResult = Assert.IsType <JsonResult>(result);
        }
Exemple #2
0
        public async Task DeleteUserAddress()
        {
            UserPushLocation emailLoc = new UserPushLocation()
            {
                UserPushLocationID = 1,
                UserID             = 1,
                UserAddressID      = 1,
                PhoneNumber        = 91655555555
            };
            //Arrange
            var controller = new UserPushLocationController(_dao, _authService);

            //Act failure
            var result = await controller.Delete(emailLoc);

            //Assert failure
            var failureResult = Assert.IsType <JsonResult>(result);
        }