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; } }
public CreateGoodsReceivedNoteDtoValidatorFixture() { Validator = new CreateGoodsReceivedNoteDtoValidator(); Model = new CreateGoodsReceivedNoteDto { PurchaseOrderId = 1, InvoiceNumber = "INV_2021_02_13", PaymentTypeId = 1, Nbt = 0.3m, Vat = 0.5m, Discount = 1.2m, ReceivedBy = Guid.NewGuid(), ReceivedDate = DateTime.Now }; }