BindaTests.NeededObjectsFactory.CreatePost C# (CSharp) Method

CreatePost() public static method

public static CreatePost ( ) : Post
return BindaTests.NeededObjects.Post
        public static Post CreatePost()
        {
            return new Post
                {
                    Title = TestVariables.Title,
                    Author = TestVariables.Author,
                    Date = TestVariables.Posted,
                    Body = TestVariables.Body,
                    Location = TestVariables.Location,
                    PublishStates = new BindingList<PublishState>(),
                    Comments = new List<Comment>(),
                    Categories = new List<KeyValuePair<int, string>>()
                };
        }