コード例 #1
0
 protected override void Then()
 {
     Assert.IsTrue(_saveResonse.Result > 0);
     Assert.IsTrue(!_saveResonse.HasErrors());
     Assert.IsTrue((_saveResonse.Events[0] as EventRequestDto <CreateEntityAuditEventMessage>)
                   .MetaData
                   .Entity
                   .Equals("Lead"));
 }
 protected override void Then()
 {
     Assert.IsTrue(_getResponse.HasErrors());
     Assert.IsTrue(_getResponse.Messages.Any(a => a.Message.Contains("Input validation: Duplicate PortfolioTransactionsSummary")));
 }
 protected override void Then()
 {
     Assert.IsTrue(_getResponse.HasErrors());
     Assert.IsTrue(_getResponse.Messages.Any(a =>
                                             a.Message.Contains("Portfolio not found")));
 }
コード例 #4
0
 protected override void Then()
 {
     Assert.IsTrue(_saveResponse.Result.ImportXlsId > 0);
     Assert.IsTrue(!_saveResponse.HasErrors());
 }
コード例 #5
0
 protected override void Then()
 {
     Assert.IsFalse(_getResponse.HasErrors());
 }