Skip to content

Latest commit

 

History

History
57 lines (42 loc) · 1.81 KB

File metadata and controls

57 lines (42 loc) · 1.81 KB

MicroElements.AutoFixture.NodaTime

Autogenerating NodaTime types with AutoFixture

Statuses

License NuGetVersion NuGetDownloads MyGetVersion

Travis

Gitter

Installation

Package Reference:

dotnet add package MicroElements.AutoFixture.NodaTime

Build

Windows: Run build.ps1

Linux: Run build.sh

Usage

Add NodaTimeCustomization to Fixture:

var localDate = new Fixture()
    .Customize(new NodaTimeCustomization())
    .Create<LocalDate>();

Supported types

  • LocalDate
  • LocalTime
  • LocalDateTime
  • OffsetDate
  • OffsetTime
  • OffsetDateTime
  • YearMonth
  • AnnualDate
  • DateInterval
  • Interval
  • Period
  • Duration
  • DateTimeZone
  • ZonedDateTime

License

This project is licensed under the MIT license. See the LICENSE file for more info.