Skip to content

Commit

Permalink
improved location of internal helper functions
Browse files Browse the repository at this point in the history
  • Loading branch information
TysonMN committed Feb 16, 2021
1 parent 1e1d7a0 commit 24088bf
Show file tree
Hide file tree
Showing 3 changed files with 146 additions and 137 deletions.
14 changes: 7 additions & 7 deletions src/Elmish.WPF.Tests/ViewModelTests.fs
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ module Helpers =
({ Get = get
Map = map
Equals = equals }
|> OneWayLazyData.box
|> BindingData.OneWayLazy.box
|> OneWayLazyData
|> createBinding) name

Expand All @@ -132,7 +132,7 @@ module Helpers =
Equals = equals
GetId = getId
ItemEquals = itemEquals }
|> OneWaySeqLazyData.box
|> BindingData.OneWaySeqLazy.box
|> OneWaySeqLazyData
|> createBinding) name

Expand All @@ -143,7 +143,7 @@ module Helpers =
(set: 'a -> 'model -> 'msg) =
({ Get = get
Set = set }
|> TwoWayData.box
|> BindingData.TwoWay.box
|> TwoWayData
|> createBinding) name

Expand All @@ -155,7 +155,7 @@ module Helpers =
(validate: 'model -> string voption) =
({ Get = get
Set = set }
|> TwoWayData.box
|> BindingData.TwoWay.box
|> TwoWayData
|> createBinding
>> Binding.withValidation (validate >> ValueOption.toList)) name
Expand Down Expand Up @@ -193,7 +193,7 @@ module Helpers =
GetBindings = fun () -> bindings
ToMsg = fun _ -> toMsg
Sticky = sticky }
|> SubModelData.box
|> BindingData.SubModel.box
|> SubModelData
|> createBinding) name

Expand All @@ -208,7 +208,7 @@ module Helpers =
GetId = getId
GetBindings = fun () -> bindings
ToMsg = fun _ -> toMsg }
|> SubModelSeqData.box
|> BindingData.SubModelSeq.box
|> SubModelSeqData
|> createBinding) name

Expand All @@ -221,7 +221,7 @@ module Helpers =
({ Get = get
Set = set
SubModelSeqBindingName = subModelSeqBindingName }
|> SubModelSelectedItemData.box
|> BindingData.SubModelSelectedItem.box
|> SubModelSelectedItemData
|> createBinding) name

Expand Down
Loading

0 comments on commit 24088bf

Please sign in to comment.