예제 #1
0
파일: Engine.cs 프로젝트: ggeorgievx/TAILS
        public Engine(IReader reader, IWriter writer, ICommandParser parser, ITAILSEntities context)
        {
            Guard.WhenArgument(reader, "reader").IsNull().Throw();
            Guard.WhenArgument(writer, "writer").IsNull().Throw();
            Guard.WhenArgument(parser, "parser").IsNull().Throw();
            Guard.WhenArgument(context, "context").IsNull().Throw();

            this.reader  = reader;
            this.writer  = writer;
            this.parser  = parser;
            this.context = context;
        }
예제 #2
0
        public CreateStudentCommand(ITAILSEntities context)
        {
            Guard.WhenArgument(context, "context").IsNull().Throw();

            this.context = context;
        }
예제 #3
0
        public ListSeatsCommand(ITAILSEntities context)
        {
            Guard.WhenArgument(context, "context").IsNull().Throw();

            this.context = context;
        }
        public GenerateSeatsMappingCommand(ITAILSEntities context)
        {
            Guard.WhenArgument(context, "context").IsNull().Throw();

            this.context = context;
        }
예제 #5
0
        public UpdateExamDateTimeCommand(ITAILSEntities context)
        {
            Guard.WhenArgument(context, "context").IsNull().Throw();

            this.context = context;
        }