Beispiel #1
0
 public static Maybe <SampleDataB> LoadSomeMaybe(SampleDataA sampleDataA)
 {
     return(Maybe <SampleDataB> .Of(new SampleDataB()));
 }
Beispiel #2
0
 public static void Persist(SampleDataA dataA)
 {
     Console.WriteLine($"Persisted {dataA}");
 }
Beispiel #3
0
 public static SampleDataB LoadNone(SampleDataA sampleDataA)
 {
     return(null);
 }
Beispiel #4
0
 public static SampleDataB LoadSome(SampleDataA sampleDataA)
 {
     return(new SampleDataB());
 }
Beispiel #5
0
 public static kms.Maybe <SampleDataB> LoadNoneKmsMaybe(SampleDataA sampleDataA)
 {
     return(new kms.Maybe <SampleDataB>());
 }
Beispiel #6
0
 public static kms.Maybe <SampleDataB> LoadSomeKmsMaybe(SampleDataA sampleDataA)
 {
     return(new kms.Maybe <SampleDataB>(new SampleDataB()));
 }
Beispiel #7
0
 public static Maybe <SampleDataB> LoadNoneMaybe(SampleDataA sampleDataA)
 {
     return(Maybe <SampleDataB> .Absent());
 }