Esempio n. 1
0
 public void Create(string createdBy, NewsCreateModel newsCreateModel)
 {
     _repository.CreateNews(
         News.CreateNews(
             newsCreateModel.Title,
             newsCreateModel.Description,
             createdBy
             )
         );
 }
Esempio n. 2
0
            public RecordRepositoryMock()
            {
                Newses = new List <News>
                {
                    News.CreateNews("examen", "data", "Olariu"),
                    News.CreateNews("curs", "prezenta obligatorie", "Olariu"),
                    News.CreateNews("laborator", "prezenta obligatorie", "Olariu"),
                    News.CreateNews("laborator", "Teme", "Olariu"),
                    News.CreateNews("proiect", "sgfg", "Olariu"),
                };

                Newses[0].Id = new Guid("e7c51c3a-3f56-40a7-832c-96246fdfe986");
            }