Esempio n. 1
0
        public HttpResponseMessage DeleteAccount(int[] accountId, byte StatusID)
        {
            AccountStatusUpdateResponse response = accountService.UpdateAccountStatus(new AccountStatusUpdateRequest()
            {
                AccountID = accountId, StatusID = StatusID
            });

            return(Request.BuildResponse(response));
        }
Esempio n. 2
0
        public void UpdateAccountStatus_UpdateStatus_Success()
        {
            int[] accountId = new int[] { 1, 2, 61 };
            byte  status    = 1;
            AccountStatusUpdateRequest req = new AccountStatusUpdateRequest();

            req.StatusID  = status;
            req.AccountID = accountId;
            mockAccountRepository.Setup(cr => cr.UpdateAccountStatus(It.IsAny <int[]>(), It.IsAny <byte>())).Verifiable();
            AccountStatusUpdateResponse res = accountService.UpdateAccountStatus(req);

            mockRepository.VerifyAll();
            Assert.AreEqual(res.Exception, null);
        }