Пример #1
0
        public void BeforeEachTest()
        {
            Context.Authors.Add(AuthorWithOnePost);
            Context.Authors.Add(AuthorWithOneRefresh);
            Context.Editors.Add(EditorWithOnePost);

            Post.Author = AuthorWithOnePost;
            Post.Editor = EditorWithOnePost;

            Post.CalculateAuthorPay();
            Post.CalculateEditorPay();

            Target = new ReportsController(Context);
        }