-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathCreateStudent.g.cs
More file actions
73 lines (59 loc) · 1.61 KB
/
CreateStudent.g.cs
File metadata and controls
73 lines (59 loc) · 1.61 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
// <auto-generated/>
// This code was generated by the library M31.FluentAPI.
// Changes to this file may cause incorrect behavior and will be lost if the code is regenerated.
#pragma warning disable CS1591 // Missing XML comment for publicly visible type or member
#nullable enable
using System;
namespace M31.FluentApi.Tests.CodeGeneration.TestClasses.Abstract.KeywordClass;
public class CreateStudent :
CreateStudent.ICreateStudent,
CreateStudent.IWithOperator,
CreateStudent.IWithClass,
CreateStudent.IWithVoid
{
private readonly Student student;
private CreateStudent()
{
student = new Student();
}
public static ICreateStudent InitialStep()
{
return new CreateStudent();
}
public static IWithClass WithOperator(string @operator)
{
CreateStudent createStudent = new CreateStudent();
createStudent.student.Operator = @operator;
return createStudent;
}
IWithClass IWithOperator.WithOperator(string @operator)
{
student.Operator = @operator;
return this;
}
IWithVoid IWithClass.WithClass(string @class)
{
student.Class = @class;
return this;
}
Student IWithVoid.WithVoid(int @void)
{
student.Void = @void;
return student;
}
public interface ICreateStudent : IWithOperator
{
}
public interface IWithOperator
{
IWithClass WithOperator(string @operator);
}
public interface IWithClass
{
IWithVoid WithClass(string @class);
}
public interface IWithVoid
{
Student WithVoid(int @void);
}
}