Blog.Logic.Core.Tests.PostsLogicTest.ShouldSetTagsToNullWhenEmptyOnPostCleanUp C# (CSharp) Method

ShouldSetTagsToNullWhenEmptyOnPostCleanUp() private method

private ShouldSetTagsToNullWhenEmptyOnPostCleanUp ( ) : void
return void
        public void ShouldSetTagsToNullWhenEmptyOnPostCleanUp()
        {
            var param = new Common.Contracts.Post
            {
                Tags = null
            };

            _postRepository = new Mock<IPostRepository>();
            _postContentRepository = new Mock<IPostContentRepository>();
            _mediaRepository = new Mock<IMediaRepository>();

            _postsLogic = new PostsLogic(_postRepository.Object, _postContentRepository.Object,
                _mediaRepository.Object);

            var result = _postsLogic.PostCleanUp(param);

            Assert.IsNotNull(result);
            Assert.IsNull(result.Tags);
        }
PostsLogicTest