Skip to content

Commit

Permalink
Add missing README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
bartelink committed Feb 13, 2020
1 parent 11a39a5 commit fbb3dd5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions dotnet-templates.sln
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "fc", "fc", "{4946576F-1558-49ED-A272-6F4D92FB0031}"
ProjectSection(SolutionItems) = preProject
equinox-fc\.template.config\template.json = equinox-fc\.template.config\template.json
equinox-fc\README.md = equinox-fc\README.md
EndProjectSection
EndProject
Project("{F2A71F9B-5D33-465A-A702-920D77279786}") = "Domain", "equinox-fc\Domain\Domain.fsproj", "{B3CFC965-6AB9-47E8-AA47-548A8D8A2E2C}"
Expand Down
8 changes: 4 additions & 4 deletions equinox-fc/Domain/InventoryTransaction.fs
Original file line number Diff line number Diff line change
Expand Up @@ -36,17 +36,17 @@ module Events =

module Fold =

type Removed = { request : Events.TransferRequested; removed : Events.Removed }
type Added = { request : Events.TransferRequested; removed : Events.Removed; added : Events.Added }
type State =
| Initial
| Adjusting of Events.AdjustmentRequested
| Adjusted of Events.AdjustmentRequested
| Transferring of Events.TransferRequested
| Failed
| Rejected
| Adding of Removed
| Added of Added
| Completed
and Removed = { request : Events.TransferRequested; removed : Events.Removed }
and Added = { request : Events.TransferRequested; removed : Events.Removed; added : Events.Added }
let initial = Initial
let evolve state = function
| Events.AdjustmentRequested e -> Adjusting e
Expand All @@ -55,7 +55,7 @@ module Fold =
| Adjusting s -> Adjusted s
| x -> failwithf "Unexpected %A when %A " ee state
| Events.TransferRequested e -> Transferring e
| Events.Failed -> Failed
| Events.Failed -> Rejected
| Events.Removed e as ee ->
match state with
| Transferring s -> Adding { request = s; removed = e }
Expand Down

0 comments on commit fbb3dd5

Please sign in to comment.