public void ToDomain_WhenCalled_ReturnsPaymentTerm() { IPaymentTermCommand sut = CreateSut(); IPaymentTerm result = sut.ToDomain(); Assert.That(result, Is.TypeOf <Domain.Accounting.PaymentTerm>()); }
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)); }
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)); }