public void StartCreatingBudgetAccount_WhenCalled_ReturnsPartialViewResultWhereModelIsAccountingIdentificationViewModel() { Controller sut = CreateSut(); PartialViewResult result = (PartialViewResult)sut.StartCreatingBudgetAccount(_fixture.Create <int>()); Assert.That(result.Model, Is.TypeOf <AccountingIdentificationViewModel>()); }
public void StartCreatingBudgetAccount_WhenCalled_ReturnsPartialViewResultWhereModelIsNotNull() { Controller sut = CreateSut(); PartialViewResult result = (PartialViewResult)sut.StartCreatingBudgetAccount(_fixture.Create <int>()); Assert.That(result.Model, Is.Not.Null); }
public void StartCreatingBudgetAccount_WhenCalled_ReturnsPartialViewResultWhereViewNameIsEqualToCreatingBudgetAccountPartial() { Controller sut = CreateSut(); PartialViewResult result = (PartialViewResult)sut.StartCreatingBudgetAccount(_fixture.Create <int>()); Assert.That(result.ViewName, Is.EqualTo("_CreatingBudgetAccountPartial")); }
public void StartCreatingBudgetAccount_WhenCalled_ReturnsPartialViewResult() { Controller sut = CreateSut(); IActionResult result = sut.StartCreatingBudgetAccount(_fixture.Create <int>()); Assert.That(result, Is.TypeOf <PartialViewResult>()); }
public void StartCreatingBudgetAccount_WhenCalled_ReturnsNotNull() { Controller sut = CreateSut(); IActionResult result = sut.StartCreatingBudgetAccount(_fixture.Create <int>()); Assert.That(result, Is.Not.Null); }
public void StartCreatingBudgetAccount_WhenCalled_ReturnsPartialViewResultWhereModelIsAccountingIdentificationViewModelWithAccountingNumberEqualToArgument() { Controller sut = CreateSut(); int accountingNumber = _fixture.Create <int>(); PartialViewResult result = (PartialViewResult)sut.StartCreatingBudgetAccount(accountingNumber); AccountingIdentificationViewModel accountingIdentificationViewModel = (AccountingIdentificationViewModel)result.Model; Assert.That(accountingIdentificationViewModel.AccountingNumber, Is.EqualTo(accountingNumber)); }