public void StartUpdatingAccount_WhenAccountNumberIsNotNullEmptyOrWhiteSpace_ReturnsPartialViewResultWhereModelIsAccountIdentificationViewModelWithAccountingNotEqualToNull() { Controller sut = CreateSut(); PartialViewResult result = (PartialViewResult)sut.StartUpdatingAccount(_fixture.Create <int>(), _fixture.Create <string>()); AccountIdentificationViewModel accountIdentificationViewModel = (AccountIdentificationViewModel)result.Model; Assert.That(accountIdentificationViewModel.Accounting, Is.Not.Null); }
public void StartUpdatingContactAccount_WhenAccountNumberIsNotNullEmptyOrWhiteSpace_ReturnsPartialViewResultWhereModelIsAccountIdentificationViewModelWithAccountingWhereAccountingNumberEqualToArgument() { Controller sut = CreateSut(); int accountingNumber = _fixture.Create <int>(); PartialViewResult result = (PartialViewResult)sut.StartUpdatingContactAccount(accountingNumber, _fixture.Create <string>()); AccountIdentificationViewModel accountIdentificationViewModel = (AccountIdentificationViewModel)result.Model; Assert.That(accountIdentificationViewModel.Accounting.AccountingNumber, Is.EqualTo(accountingNumber)); }