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