BudgetAnalyser.Engine.UnitTest.Matching.DtoToMatchingRuleMapperTest.ShouldSetCreatedDateToNowIfGivenNull C# (CSharp) Method

ShouldSetCreatedDateToNowIfGivenNull() private method

private ShouldSetCreatedDateToNowIfGivenNull ( ) : void
return void
        public void ShouldSetCreatedDateToNowIfGivenNull()
        {
            TestData.Created = null;
            var subject = new Mapper_MatchingRuleDto_MatchingRule(new BucketBucketRepoAlwaysFind());
            Result = subject.ToModel(TestData);
            Assert.IsFalse(Result.Created == default(DateTime));
        }