Exemplo n.º 1
0
 static ISimulationResult CreateResult(ISimulationKey key)
 {
     return(new SimulationResult
     {
         Key = key,
         Value = Dev2BinaryDataListFactory.CreateDataList()
     });
 }
Exemplo n.º 2
0
 public bool Equals(ISimulationKey other)
 {
     if (other == null)
     {
         return(false);
     }
     return(WorkflowID.Equals(other.WorkflowID) &&
            ActivityID.Equals(other.ActivityID) &&
            ScenarioID.Equals(other.ScenarioID));
 }
Exemplo n.º 3
0
 public bool Equals(ISimulationKey other)
 {
     if (other == null)
     {
         return false;
     }
     return WorkflowID.Equals(other.WorkflowID)
            && ActivityID.Equals(other.ActivityID)
            && ScenarioID.Equals(other.ScenarioID);
 }
Exemplo n.º 4
0
 public void DeleteWithInvalidItem_Expected_ItemCountIsSame()
 {
     lock (l)
     {
         SimulationRepository thisInstance = _testInstance;
         int               expected        = thisInstance.Count;
         ISimulationKey    theKey          = CreateKey();
         ISimulationResult item            = CreateResult(theKey);
         string            id1             = theKey.ActivityID;
         string            id2             = theKey.ScenarioID;
         string            id3             = theKey.WorkflowID;
         Assert.AreEqual(expected, thisInstance.Count, "Fail 1");
         thisInstance.Delete(item); // Problem over here!
         Assert.AreEqual(expected, thisInstance.Count, "Fail 2");
     }
 }
 static ISimulationResult CreateResult(ISimulationKey key)
 {
     return new SimulationResult
     {
         Key = key,
         Value = Dev2BinaryDataListFactory.CreateDataList()
     };
 }