Exemplo n.º 1
0
 public override DiffResultBO IsChanged()
 {
     if (Missing.IsNullOrEmpty() && Increased.IsNullOrEmpty())
     {
         return(new DiffResultBO(DiffResultEnum.NoChanges));
     }
     return(IsItemsChanged());
 }
Exemplo n.º 2
0
 public override DiffResultBO IsItemsChanged()
 {
     if (Context.IsRequest && Increased.IsNullOrEmpty() ||
         Context.IsResponse && Missing.IsNullOrEmpty())
     {
         return(new DiffResultBO(DiffResultEnum.Compatible));
     }
     return(new DiffResultBO(DiffResultEnum.Incompatible));
 }
Exemplo n.º 3
0
 public override DiffResultBO IsCoreChanged()
 {
     if (Increased.IsNullOrEmpty() && Missing.IsNullOrEmpty())
     {
         return(new DiffResultBO(DiffResultEnum.NoChanges));
     }
     if (Missing.IsNullOrEmpty())
     {
         return(new DiffResultBO(DiffResultEnum.Compatible));
     }
     return(new DiffResultBO(DiffResultEnum.Incompatible));
 }
Exemplo n.º 4
0
 public override DiffResultBO IsCoreChanged()
 {
     if (Increased.IsNullOrEmpty() && Missing.IsNullOrEmpty())
     {
         return(new DiffResultBO(DiffResultEnum.NoChanges));
     }
     if (_context.IsRequest && Missing.IsNullOrEmpty() || _context.IsResponse && Increased.IsNullOrEmpty())
     {
         return(new DiffResultBO(DiffResultEnum.Compatible));
     }
     return(new DiffResultBO(DiffResultEnum.Incompatible));
 }
Exemplo n.º 5
0
 protected override List <ChangedInfoBO> GetCoreChanges() =>
 GetCoreChangeInfosOfComposed(Increased.ToList(), Missing.ToList(), x => x.Key);
Exemplo n.º 6
0
 protected override List <ChangedInfoBO> GetCoreChanges() =>
 GetCoreChangeInfosOfComposed(Increased.SelectMany(x => x.Keys).ToList(),
                              Missing.SelectMany(x => x.Keys).ToList(), x => x.Name);
Exemplo n.º 7
0
        public void Increase()
        {
            schedule.Increase();

            Increased?.Invoke(this, EventArgs.Empty);
        }
Exemplo n.º 8
0
 public void Increase()
 {
     Increased?.Invoke(1);
 }
Exemplo n.º 9
0
 public void Increase(int count)
 {
     Increased?.Invoke(count);
 }