public async Task OptionsTitleIsMappedCorrectlyWithoutATransfer(bool isAgreementSigned, string expectedOptionsTitle) { var fixture = new DetailsViewModelMapperTestsFixture(); fixture.SetIsAgreementSigned(isAgreementSigned); var result = await fixture.Map(); Assert.AreEqual(expectedOptionsTitle, result.OptionsTitle); }
public async Task ShowApprovalOptionIsMappedCorrectlyWithoutATransfer(bool isAgreementSigned, bool expectedShowApprovalOption) { var fixture = new DetailsViewModelMapperTestsFixture(); fixture.SetIsAgreementSigned(isAgreementSigned); var result = await fixture.Map(); Assert.AreEqual(expectedShowApprovalOption, result.ProviderCanApprove); }
public async Task IsAgreementSignedIsMappedCorrectlyWithoutATransfer(bool isAgreementSigned, bool expectedIsAgreementSigned) { var fixture = new DetailsViewModelMapperTestsFixture(); fixture.SetIsAgreementSigned(isAgreementSigned); var result = await fixture.Map(); Assert.AreEqual(expectedIsAgreementSigned, result.IsAgreementSigned); }
public async Task ShowApprovalOptionMessageIsMappedCorrectlyWithoutATransfer(bool isAgreementSigned, bool showApprovalOption, bool isApprovedByEmployer, bool expectedShowApprovalOptionMessage) { var fixture = new DetailsViewModelMapperTestsFixture(); fixture.Cohort.IsApprovedByEmployer = isApprovedByEmployer; fixture.SetIsAgreementSigned(isAgreementSigned); var result = await fixture.Map(); Assert.AreEqual(expectedShowApprovalOptionMessage, result.ShowApprovalOptionMessage); }