示例#1
0
        public void MapToViewModel_WithValidModel_ReturnsChequeViewModel()
        {
            var cm = new ChequeModel
            {
                PayeeName    = "John Doe",
                DollarAmount = 1234.56,
                IssueDate    = DateTime.Now
            };

            var vm = MappingExtensions.MapToViewModel(cm);

            vm.Should().NotBeNull();
        }
示例#2
0
        public void MapToViewModel_WithNullModel_ReturnsNull()
        {
            var vm = MappingExtensions.MapToViewModel((ChequeModel)null);

            vm.Should().BeNull();
        }