public FinancialGuaranteeStatusChangeEventHandlerTests()
        {
            context = new TestIwsContext();
            var userContext = new TestUserContext(UserId);
            
            handler = new FinancialGuaranteeStatusChangeEventHandler(context, userContext);

            context.Users.Add(UserFactory.Create(UserId, AnyString, AnyString, AnyString, AnyString));

            financialGuarantee = new FinancialGuaranteeCollection(new Guid("68787AC6-7CF5-4862-8E7E-77E20172AECC")).AddFinancialGuarantee(new DateTime(2015, 1, 1));

            receivedEvent = new FinancialGuaranteeStatusChangeEvent(financialGuarantee,
                FinancialGuaranteeStatus.ApplicationReceived);
        }
コード例 #2
0
        public FinancialGuaranteeStatusChangeEventHandlerTests()
        {
            context = new TestIwsContext();
            var userContext = new TestUserContext(UserId);

            handler = new FinancialGuaranteeStatusChangeEventHandler(context, userContext);

            context.Users.Add(UserFactory.Create(UserId, AnyString, AnyString, AnyString, AnyString));

            financialGuarantee = new FinancialGuaranteeCollection(new Guid("68787AC6-7CF5-4862-8E7E-77E20172AECC")).AddFinancialGuarantee(new DateTime(2015, 1, 1));

            receivedEvent = new FinancialGuaranteeStatusChangeEvent(financialGuarantee,
                                                                    FinancialGuaranteeStatus.ApplicationReceived);
        }