Beispiel #1
0
 public SetLanguages()
 {
     _taskLanguage = new TaskLanguage
     {
         LanguageId  = Guid.NewGuid(),
         MemoryLimit = 500,
         TimeLimit   = 500
     };
 }
Beispiel #2
0
        public SendData()
        {
            _test1 = new Data.Models.TaskModels.Test
            {
                Input  = $"{nameof(_test1)}in",
                Output = $"{nameof(_test1)}out",
                Id     = Guid.NewGuid(),
                TaskId = _task.Id
            };
            _test2 = new Data.Models.TaskModels.Test
            {
                Input  = $"{nameof(_test2)}in",
                Output = $"{nameof(_test2)}out",
                Id     = Guid.NewGuid(),
                TaskId = _task.Id
            };
            _task.Tests = new List <Data.Models.TaskModels.Test>
            {
                _test1,
                _test2
            };

            _task.CheckerId = Guid.NewGuid();

            _language = new Language
            {
                Id        = Guid.NewGuid(),
                Extension = "ext"
            };
            _upload.Language = _language;

            _taskLanguage = new TaskLanguage
            {
                TaskId      = _task.Id,
                LanguageId  = _language.Id,
                MemoryLimit = 256,
                TimeLimit   = 1
            };
            _task.Languages = new List <TaskLanguage>
            {
                _taskLanguage
            };
        }