static ISimulationResult CreateResult(ISimulationKey key) { return(new SimulationResult { Key = key, Value = Dev2BinaryDataListFactory.CreateDataList() }); }
public bool Equals(ISimulationKey other) { if (other == null) { return(false); } return(WorkflowID.Equals(other.WorkflowID) && ActivityID.Equals(other.ActivityID) && ScenarioID.Equals(other.ScenarioID)); }
public bool Equals(ISimulationKey other) { if (other == null) { return false; } return WorkflowID.Equals(other.WorkflowID) && ActivityID.Equals(other.ActivityID) && ScenarioID.Equals(other.ScenarioID); }
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() }; }