micro-elements - MicroElements.AutoFixture.NodaTime 1.0.0

AutoFixture NodaTime generators

PM> Install-Package MicroElements.AutoFixture.NodaTime -Version 1.0.0 -Source https://www.myget.org/F/micro-elements/api/v3/index.json

Copy to clipboard

> nuget.exe install MicroElements.AutoFixture.NodaTime -Version 1.0.0 -Source https://www.myget.org/F/micro-elements/api/v3/index.json

Copy to clipboard

> dotnet add package MicroElements.AutoFixture.NodaTime --version 1.0.0 --source https://www.myget.org/F/micro-elements/api/v3/index.json

Copy to clipboard
<PackageReference Include="MicroElements.AutoFixture.NodaTime" Version="1.0.0" />
Copy to clipboard
source https://www.myget.org/F/micro-elements/api/v3/index.json

nuget MicroElements.AutoFixture.NodaTime  ~> 1.0.0
Copy to clipboard

> choco install MicroElements.AutoFixture.NodaTime --version 1.0.0 --source https://www.myget.org/F/micro-elements/api/v2

Copy to clipboard
Import-Module PowerShellGet
Register-PSRepository -Name "micro-elements" -SourceLocation "https://www.myget.org/F/micro-elements/api/v2"
Install-Module -Name "MicroElements.AutoFixture.NodaTime" -RequiredVersion "1.0.0" -Repository "micro-elements" 
Copy to clipboard

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.

$# 1.0.0

  • NodaTime updated to 3.0.0
  • Added support for types: OffsetDate, OffsetTime, OffsetDateTime, YearMonth ,AnnualDate, DateInterval, Interval, Period, Duration, DateTimeZone, ZonedDateTime (PR#3 by @gliljas)

0.3.0

  • xUnit dependency removed

0.2.0

  • Added InstantGenerator (PR# 1 by sfmskywalker)
  • NodaTime updated to 2.4.7
  • Added reference to AutoFixture.Xunit2
  • Added NodaTimeAutoDataAttribute to use with xUnit

0.1.0

  • Initial version

Full release notes can be found at: https://github.com/micro-elements/MicroElements.AutoFixture.NodaTime.git/blob/master/CHANGELOG.md

  • .NETStandard 2.0
    • AutoFixture (>= 4.11.0)
    • NodaTime (>= 3.0.0)
  • .NETStandard 2.0: 2.0.0.0

Owners

Alexey Petryashev

Authors

micro-elements

Project URL

https://github.com/micro-elements/MicroElements.AutoFixture.NodaTime.git

License

Unknown

Tags

AutoFixture NodaTime MicroElements

Info

99 total downloads
19 downloads for version 1.0.0
Download (13.22 KB)
Found on the current feed only

Package history

Version Size Last updated Downloads Mirrored?
1.0.0 13.22 KB Sun, 30 May 2021 09:22:31 GMT 19
1.0.0-rc.1 13.22 KB Sat, 22 May 2021 16:32:11 GMT 24
0.3.0 6.17 KB Mon, 20 Apr 2020 09:53:51 GMT 21
0.2.0 6.14 KB Mon, 20 Apr 2020 09:51:48 GMT 17
0.1.0 5.7 KB Mon, 25 Feb 2019 20:03:45 GMT 18