コード例 #1
0
        public void ToDomain_WhenCalled_ReturnsPaymentTerm()
        {
            IPaymentTermCommand sut = CreateSut();

            IPaymentTerm result = sut.ToDomain();

            Assert.That(result, Is.TypeOf <Domain.Accounting.PaymentTerm>());
        }
コード例 #2
0
        public void ToDomain_WhenCalled_ReturnsPaymentTermWithNameFromCommand()
        {
            string name             = _fixture.Create <string>();
            IPaymentTermCommand sut = CreateSut(name: name);

            string result = sut.ToDomain().Name;

            Assert.That(result, Is.EqualTo(name));
        }
コード例 #3
0
        public void ToDomain_WhenCalled_ReturnsPaymentTermWithNumberFromCommand()
        {
            int number = _fixture.Create <int>();
            IPaymentTermCommand sut = CreateSut(number);

            int result = sut.ToDomain().Number;

            Assert.That(result, Is.EqualTo(number));
        }