parent
25712e7513
commit
3e6bdbb85a
Binary file not shown.
Binary file not shown.
@ -1,6 +1,6 @@
|
|||||||
namespace Model;
|
namespace Model;
|
||||||
|
|
||||||
public class Article
|
public class ArticleEntity
|
||||||
{
|
{
|
||||||
public long Id { get; set; }
|
public long Id { get; set; }
|
||||||
public string Title { get; set; } = string.Empty;
|
public string Title { get; set; } = string.Empty;
|
@ -0,0 +1,27 @@
|
|||||||
|
using Entities;
|
||||||
|
using Model;
|
||||||
|
using ArticleEntity = Model.ArticleEntity;
|
||||||
|
|
||||||
|
namespace StubbedContextLib;
|
||||||
|
|
||||||
|
public class StubTest
|
||||||
|
{
|
||||||
|
private List<ArticleEntity> _article;
|
||||||
|
|
||||||
|
public List<ArticleEntity> StubArticle()
|
||||||
|
{
|
||||||
|
_article = new List<ArticleEntity>
|
||||||
|
{
|
||||||
|
new ArticleEntity
|
||||||
|
{
|
||||||
|
Id = 1,
|
||||||
|
Title = "Test",
|
||||||
|
Description = "Test",
|
||||||
|
Author = "Test",
|
||||||
|
DatePublished = "Test",
|
||||||
|
LectureTime = 1
|
||||||
|
}
|
||||||
|
};
|
||||||
|
return _article;
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in new issue