public void VerifyThatDropParameterTypeWorks() { var containerRow = new RequirementsSpecificationRowViewModel(this.reqSpec, this.session.Object, null); var row = new RequirementRowViewModel(this.req, this.session.Object, containerRow); var param = new BooleanParameterType(); var tuple = new Tuple <ParameterType, MeasurementScale>(param, null); var dropinfo = new Mock <IDropInfo>(); dropinfo.Setup(x => x.Payload).Returns(tuple); row.Drop(dropinfo.Object); this.session.Verify(x => x.Write(It.IsAny <OperationContainer>())); }
public void VerifyThatWhenCategoryIsDroppedDalIsCalled() { var containerRow = new RequirementsSpecificationRowViewModel(this.reqSpec, this.session.Object, null); var row = new RequirementRowViewModel(this.req, this.session.Object, containerRow); var category = new Category(Guid.NewGuid(), this.assembler.Cache, this.uri); var dropinfo = new Mock <IDropInfo>(); dropinfo.Setup(x => x.Payload).Returns(category); dropinfo.Setup(x => x.Effects).Returns(DragDropEffects.Copy); row.Drop(dropinfo.Object); this.session.Verify(x => x.Write(It.IsAny <OperationContainer>())); }