public RefuseFinancialGuaranteeHandlerTests() { context = new TestIwsContext(); repository = A.Fake<IFinancialGuaranteeRepository>(); var financialGuaranteeCollection = new TestFinancialGuaranteeCollection(ApplicationCompletedId); financialGuarantee = new TestFinancialGuarantee(FinancialGuaranteeId); financialGuaranteeCollection.AddExistingFinancialGuarantee(financialGuarantee); A.CallTo(() => repository.GetByNotificationId(ApplicationCompletedId)).Returns(financialGuaranteeCollection); handler = new RefuseFinancialGuaranteeHandler(repository, context); }
public RefuseFinancialGuaranteeHandlerTests() { context = new TestIwsContext(); repository = A.Fake <IFinancialGuaranteeRepository>(); var financialGuaranteeCollection = new TestFinancialGuaranteeCollection(ApplicationCompletedId); financialGuarantee = new TestFinancialGuarantee(FinancialGuaranteeId); financialGuaranteeCollection.AddExistingFinancialGuarantee(financialGuarantee); A.CallTo(() => repository.GetByNotificationId(ApplicationCompletedId)).Returns(financialGuaranteeCollection); handler = new RefuseFinancialGuaranteeHandler(repository, context); }
public ApproveFinancialGuaranteeHandlerTests() { context = new TestIwsContext(); repository = A.Fake<IFinancialGuaranteeRepository>(); var financialGuaranteeCollection = new TestFinancialGuaranteeCollection(ApplicationCompletedId); financialGuarantee = new TestFinancialGuarantee(FinancialGuaranteeId); financialGuarantee.SetStatus(FinancialGuaranteeStatus.ApplicationComplete); financialGuarantee.CompletedDate = FirstDate; financialGuaranteeCollection.AddExistingFinancialGuarantee(financialGuarantee); A.CallTo(() => repository.GetByNotificationId(ApplicationCompletedId)).Returns(financialGuaranteeCollection); var approval = new FinancialGuaranteeApproval(repository); handler = new ApproveFinancialGuaranteeHandler(approval, context); }
public ApproveFinancialGuaranteeHandlerTests() { context = new TestIwsContext(); repository = A.Fake <IFinancialGuaranteeRepository>(); var financialGuaranteeCollection = new TestFinancialGuaranteeCollection(ApplicationCompletedId); financialGuarantee = new TestFinancialGuarantee(FinancialGuaranteeId); financialGuarantee.SetStatus(FinancialGuaranteeStatus.ApplicationComplete); financialGuarantee.CompletedDate = FirstDate; financialGuaranteeCollection.AddExistingFinancialGuarantee(financialGuarantee); A.CallTo(() => repository.GetByNotificationId(ApplicationCompletedId)).Returns(financialGuaranteeCollection); var approval = new FinancialGuaranteeApproval(repository); handler = new ApproveFinancialGuaranteeHandler(approval, context); }