Esempio n. 1
0
        public void Put_on_success()
        {
            //Arrange
            var id = 1;
            var checkingAccount = new CheckingAccount();

            checkingAccount.Id = id;

            //Act
            var result = _checkingAccountController.Put(id, checkingAccount);

            //Assert
            _checkingAccountServiceMock.Received().Update(checkingAccount);
            Assert.IsType <NoContentResult>(result);
        }