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 EditGoodsReceivedNoteItemDtoValidatorFixture() { Validator = new EditGoodsReceivedNoteItemDtoValidator(); Model = new EditGoodsReceivedNoteItemDto { GoodsReceivedNoteId = 1, ItemId = 1, ItemUnitPrice = 1450.50m, Quantity = 2, Nbt = 0.3m, Vat = 0.5m, Discount = 1.2m, }; }