public void GetAccountForTransaction_WhenUnitOfWorkReturnsAssetEqualsNull_ReturnNull_Test() { _mockUnitOfWork = new Mock <IUnitOfWork>(); _mockUnitOfWork.Setup(uow => uow.Assets.Get(It.IsAny <int>())); _service = new AccountTransactionService(_mockUnitOfWork.Object); var result = _service.GetAccountForTransaction(assetId: 1); Assert.That(result, Is.EqualTo(null)); }
public void GetAccountForTransaction_WhenCalled_ReturnAccount_Test() { var result = _service.GetAccountForTransaction(assetId: _dbAsset.Id); Assert.That(result, Is.InstanceOf <Account>()); }