public CreateStockItemDtoValidatorFixture() { Validator = new CreateStockItemDtoValidator(); Model = new CreateStockItemDto { TypeId = 1, Name = "Rice", ItemUnit = 5, UnitOfMeasureId = 1, Description = "Rice 5kg bag" }; }
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; } }