public static CompletedEnglishMultimedia GetSimpleModel( Guid?userId = null, DateTime?date = null, MultimediaType?multimediaType = null, string englishLevel = null, string contentType = null) { multimediaType = multimediaType ?? MultimediaTypeFactory.GetRandomMultimediaType(); contentType = contentType ?? ContentTypeFactory.GetRandomContentType(multimediaType.Value); return(new CompletedEnglishMultimedia( id: Guid.NewGuid().ToString(), userId: userId ?? Guid.NewGuid(), contentId: Guid.NewGuid().ToString(), englishLevel: englishLevel ?? EnglishLevelFactory.GetRandomEnglishLevel(), date: date ?? DateTimeFactory.GetRandomDateTime(), tittle: "Tittle", multimediaType: multimediaType.Value, contentType: contentType)); }
public static CompletedEnglishTask GetSimpleModel( Guid?userId = null, int itemsPerTask = 10, DateTime?date = null, string englishLevel = null, string grammarPart = null, int?correctAnswers = null, int?incorrectAnswers = null) { correctAnswers = correctAnswers ?? _random.Next(1, itemsPerTask - 2); incorrectAnswers = incorrectAnswers ?? itemsPerTask - correctAnswers; return(new CompletedEnglishTask( id: Guid.NewGuid().ToString(), userId: userId ?? Guid.NewGuid(), contentId: Guid.NewGuid().ToString(), englishLevel: englishLevel ?? EnglishLevelFactory.GetRandomEnglishLevel(), date: date ?? DateTimeFactory.GetRandomDateTime(), grammarPart: grammarPart ?? GrammarPartFactory.GetRandomGrammarType(), correctAnswers: correctAnswers.Value, incorrectAnswers: incorrectAnswers.Value)); }