Exemplo n.º 1
0
        public EditTransactionDtoValidatorFixture()
        {
            Validator = new EditTransactionDtoValidator();

            Model = new EditTransactionDto
            {
                TransactionTypeId = 2,
                PaymentTypeId     = 1,
                Date        = DateTime.Now.AddDays(-5),
                Description = "Income from sale",
                Amount      = 10110.5m,
                Cashflow    = "Income"
            };
        }
Exemplo n.º 2
0
        protected virtual void Dispose(bool disposing)
        {
            if (!_disposed)
            {
                if (disposing)
                {
#pragma warning disable CS8625 // Cannot convert null literal to non-nullable reference type.
                    Model     = null;
                    Validator = null;
#pragma warning restore CS8625 // Cannot convert null literal to non-nullable reference type.
                }

                _disposed = true;
            }
        }