//------------------------------------------------------------------------------ // This code was generated by myriad. // Changes to this file will be lost when the code is regenerated. //------------------------------------------------------------------------------ namespace SomeNamespace.CapturingMock open System open WoofWare.Myriad.Plugins /// Mock record type for an interface type internal PublicTypeMock = { Mem1 : string * int -> string list /// Additions to this ResizeArray are locked on itself. For maximum safety, lock on this field before reading it. Mem1_Calls : ResizeArray Mem2 : string -> int /// Additions to this ResizeArray are locked on itself. For maximum safety, lock on this field before reading it. Mem2_Calls : ResizeArray Mem3 : int * option -> string /// Additions to this ResizeArray are locked on itself. For maximum safety, lock on this field before reading it. Mem3_Calls : ResizeArray } /// An implementation where every non-unit method throws. static member Empty : PublicTypeMock = { Mem1 = (fun _ -> raise (System.NotImplementedException "Unimplemented mock function: Mem1")) Mem2 = (fun _ -> raise (System.NotImplementedException "Unimplemented mock function: Mem2")) Mem3 = (fun _ -> raise (System.NotImplementedException "Unimplemented mock function: Mem3")) Mem1_Calls = ResizeArray () Mem2_Calls = ResizeArray () Mem3_Calls = ResizeArray () } interface IPublicType with member this.Mem1 (arg_0_0, arg_0_1) = this.Mem1 (arg_0_0, arg_0_1) member this.Mem2 arg_0_0 = this.Mem2 (arg_0_0) member this.Mem3 (arg_0_0, arg_0_1) = this.Mem3 (arg_0_0, arg_0_1) namespace SomeNamespace.CapturingMock open System open WoofWare.Myriad.Plugins /// Mock record type for an interface type public PublicTypeInternalFalseMock = { Mem1 : string * int -> string list /// Additions to this ResizeArray are locked on itself. For maximum safety, lock on this field before reading it. Mem1_Calls : ResizeArray Mem2 : string -> int /// Additions to this ResizeArray are locked on itself. For maximum safety, lock on this field before reading it. Mem2_Calls : ResizeArray Mem3 : int * option -> string /// Additions to this ResizeArray are locked on itself. For maximum safety, lock on this field before reading it. Mem3_Calls : ResizeArray } /// An implementation where every non-unit method throws. static member Empty : PublicTypeInternalFalseMock = { Mem1 = (fun _ -> raise (System.NotImplementedException "Unimplemented mock function: Mem1")) Mem2 = (fun _ -> raise (System.NotImplementedException "Unimplemented mock function: Mem2")) Mem3 = (fun _ -> raise (System.NotImplementedException "Unimplemented mock function: Mem3")) Mem1_Calls = ResizeArray () Mem2_Calls = ResizeArray () Mem3_Calls = ResizeArray () } interface IPublicTypeInternalFalse with member this.Mem1 (arg_0_0, arg_0_1) = this.Mem1 (arg_0_0, arg_0_1) member this.Mem2 arg_0_0 = this.Mem2 (arg_0_0) member this.Mem3 (arg_0_0, arg_0_1) = this.Mem3 (arg_0_0, arg_0_1) namespace SomeNamespace.CapturingMock open System open WoofWare.Myriad.Plugins /// Mock record type for an interface type internal InternalTypeMock = { Mem1 : string * int -> unit /// Additions to this ResizeArray are locked on itself. For maximum safety, lock on this field before reading it. Mem1_Calls : ResizeArray Mem2 : string -> int /// Additions to this ResizeArray are locked on itself. For maximum safety, lock on this field before reading it. Mem2_Calls : ResizeArray } /// An implementation where every non-unit method throws. static member Empty : InternalTypeMock = { Mem1 = (fun _ -> raise (System.NotImplementedException "Unimplemented mock function: Mem1")) Mem2 = (fun _ -> raise (System.NotImplementedException "Unimplemented mock function: Mem2")) Mem1_Calls = ResizeArray () Mem2_Calls = ResizeArray () } interface InternalType with member this.Mem1 (arg_0_0, arg_0_1) = this.Mem1 (arg_0_0, arg_0_1) member this.Mem2 arg_0_0 = this.Mem2 (arg_0_0) namespace SomeNamespace.CapturingMock open System open WoofWare.Myriad.Plugins /// Mock record type for an interface type private PrivateTypeMock = { Mem1 : string * int -> unit /// Additions to this ResizeArray are locked on itself. For maximum safety, lock on this field before reading it. Mem1_Calls : ResizeArray Mem2 : string -> int /// Additions to this ResizeArray are locked on itself. For maximum safety, lock on this field before reading it. Mem2_Calls : ResizeArray } /// An implementation where every non-unit method throws. static member Empty : PrivateTypeMock = { Mem1 = (fun _ -> raise (System.NotImplementedException "Unimplemented mock function: Mem1")) Mem2 = (fun _ -> raise (System.NotImplementedException "Unimplemented mock function: Mem2")) Mem1_Calls = ResizeArray () Mem2_Calls = ResizeArray () } interface PrivateType with member this.Mem1 (arg_0_0, arg_0_1) = this.Mem1 (arg_0_0, arg_0_1) member this.Mem2 arg_0_0 = this.Mem2 (arg_0_0) namespace SomeNamespace.CapturingMock open System open WoofWare.Myriad.Plugins /// Mock record type for an interface type private PrivateTypeInternalFalseMock = { Mem1 : string * int -> unit /// Additions to this ResizeArray are locked on itself. For maximum safety, lock on this field before reading it. Mem1_Calls : ResizeArray Mem2 : string -> int /// Additions to this ResizeArray are locked on itself. For maximum safety, lock on this field before reading it. Mem2_Calls : ResizeArray } /// An implementation where every non-unit method throws. static member Empty : PrivateTypeInternalFalseMock = { Mem1 = (fun _ -> raise (System.NotImplementedException "Unimplemented mock function: Mem1")) Mem2 = (fun _ -> raise (System.NotImplementedException "Unimplemented mock function: Mem2")) Mem1_Calls = ResizeArray () Mem2_Calls = ResizeArray () } interface PrivateTypeInternalFalse with member this.Mem1 (arg_0_0, arg_0_1) = this.Mem1 (arg_0_0, arg_0_1) member this.Mem2 arg_0_0 = this.Mem2 (arg_0_0) namespace SomeNamespace.CapturingMock open System open WoofWare.Myriad.Plugins /// Mock record type for an interface type internal VeryPublicTypeMock<'a, 'b> = { Mem1 : 'a -> 'b /// Additions to this ResizeArray are locked on itself. For maximum safety, lock on this field before reading it. Mem1_Calls : ResizeArray<'a> } /// An implementation where every non-unit method throws. static member Empty () : VeryPublicTypeMock<'a, 'b> = { Mem1 = (fun _ -> raise (System.NotImplementedException "Unimplemented mock function: Mem1")) Mem1_Calls = ResizeArray () } interface VeryPublicType<'a, 'b> with member this.Mem1 arg_0_0 = this.Mem1 (arg_0_0) namespace SomeNamespace.CapturingMock open System open WoofWare.Myriad.Plugins module internal CurriedMockCalls = /// A single call to the Mem1 method type internal Mem1Call<'a> = { bar : int Arg1 : 'a } /// A single call to the Mem2 method type internal Mem2Call<'a> = { Arg0 : int * string baz : 'a } /// A single call to the Mem3 method type internal Mem3Call<'a> = { quux : (int * string) flurb : 'a } /// A single call to the Mem4 method type internal Mem4Call<'a> = { Arg0 : int * string Arg1 : 'a * int } /// A single call to the Mem5 method type internal Mem5Call<'a> = { Arg0 : int * string Arg1 : 'a * int } /// A single call to the Mem6 method type internal Mem6Call<'a> = { Arg0 : int * string Arg1 : 'a * int } /// Mock record type for an interface type internal CurriedMock<'a> = { Mem1 : int -> 'a -> string Mem1_Calls : ResizeArray> Mem2 : int * string -> 'a -> string Mem2_Calls : ResizeArray> Mem3 : (int * string) -> 'a -> string Mem3_Calls : ResizeArray> Mem4 : (int * string) -> ('a * int) -> string Mem4_Calls : ResizeArray> Mem5 : int * string -> ('a * int) -> string Mem5_Calls : ResizeArray> Mem6 : int * string -> 'a * int -> string Mem6_Calls : ResizeArray> } /// An implementation where every non-unit method throws. static member Empty () : CurriedMock<'a> = { Mem1 = (fun _ -> raise (System.NotImplementedException "Unimplemented mock function: Mem1")) Mem2 = (fun _ -> raise (System.NotImplementedException "Unimplemented mock function: Mem2")) Mem3 = (fun _ -> raise (System.NotImplementedException "Unimplemented mock function: Mem3")) Mem4 = (fun _ -> raise (System.NotImplementedException "Unimplemented mock function: Mem4")) Mem5 = (fun _ -> raise (System.NotImplementedException "Unimplemented mock function: Mem5")) Mem6 = (fun _ -> raise (System.NotImplementedException "Unimplemented mock function: Mem6")) Mem1_Calls = ResizeArray () Mem2_Calls = ResizeArray () Mem3_Calls = ResizeArray () Mem4_Calls = ResizeArray () Mem5_Calls = ResizeArray () Mem6_Calls = ResizeArray () } interface Curried<'a> with member this.Mem1 arg_0_0 arg_1_0 = this.Mem1 (arg_0_0) (arg_1_0) member this.Mem2 (arg_0_0, arg_0_1) arg_1_0 = this.Mem2 (arg_0_0, arg_0_1) (arg_1_0) member this.Mem3 arg_0_0 arg_1_0 = this.Mem3 (arg_0_0) (arg_1_0) member this.Mem4 ((arg_0_0, arg_0_1)) ((arg_1_0, arg_1_1)) = this.Mem4 (arg_0_0, arg_0_1) (arg_1_0, arg_1_1) member this.Mem5 (arg_0_0, arg_0_1) ((arg_1_0, arg_1_1)) = this.Mem5 (arg_0_0, arg_0_1) (arg_1_0, arg_1_1) member this.Mem6 (arg_0_0, arg_0_1) (arg_1_0, arg_1_1) = this.Mem6 (arg_0_0, arg_0_1) (arg_1_0, arg_1_1) namespace SomeNamespace.CapturingMock open System open WoofWare.Myriad.Plugins /// Mock record type for an interface type internal TypeWithInterfaceMock = { /// Implementation of IDisposable.Dispose Dispose : unit -> unit Mem1 : string option -> string[] Async /// Additions to this ResizeArray are locked on itself. For maximum safety, lock on this field before reading it. Mem1_Calls : ResizeArray Mem2 : unit -> string[] Async /// Additions to this ResizeArray are locked on itself. For maximum safety, lock on this field before reading it. Mem2_Calls : ResizeArray } /// An implementation where every non-unit method throws. static member Empty : TypeWithInterfaceMock = { Dispose = (fun () -> ()) Mem1 = (fun _ -> raise (System.NotImplementedException "Unimplemented mock function: Mem1")) Mem2 = (fun _ -> raise (System.NotImplementedException "Unimplemented mock function: Mem2")) Mem1_Calls = ResizeArray () Mem2_Calls = ResizeArray () } interface TypeWithInterface with member this.Mem1 arg_0_0 = this.Mem1 (arg_0_0) member this.Mem2 () = this.Mem2 (()) interface System.IDisposable with member this.Dispose () : unit = this.Dispose () namespace SomeNamespace.CapturingMock open System open WoofWare.Myriad.Plugins /// Mock record type for an interface type internal TypeWithPropertiesMock = { /// Implementation of IDisposable.Dispose Dispose : unit -> unit Prop1 : unit -> int /// Additions to this ResizeArray are locked on itself. For maximum safety, lock on this field before reading it. Prop1_Calls : ResizeArray Prop2 : unit -> unit Async /// Additions to this ResizeArray are locked on itself. For maximum safety, lock on this field before reading it. Prop2_Calls : ResizeArray Mem1 : string option -> string[] Async /// Additions to this ResizeArray are locked on itself. For maximum safety, lock on this field before reading it. Mem1_Calls : ResizeArray } /// An implementation where every non-unit method throws. static member Empty : TypeWithPropertiesMock = { Dispose = (fun () -> ()) Prop1 = (fun _ -> raise (System.NotImplementedException "Unimplemented mock function: Prop1")) Prop2 = (fun _ -> raise (System.NotImplementedException "Unimplemented mock function: Prop2")) Mem1 = (fun _ -> raise (System.NotImplementedException "Unimplemented mock function: Mem1")) Prop1_Calls = ResizeArray () Prop2_Calls = ResizeArray () Mem1_Calls = ResizeArray () } interface TypeWithProperties with member this.Mem1 arg_0_0 = this.Mem1 (arg_0_0) member this.Prop1 = this.Prop1 () member this.Prop2 = this.Prop2 () interface System.IDisposable with member this.Dispose () : unit = this.Dispose ()