Execute() public method

Executes the service
public Execute ( StringBuilder>.Dictionary values, IWorkspace theWorkspace ) : StringBuilder
values StringBuilder>.Dictionary The values.
theWorkspace IWorkspace The workspace.
return StringBuilder
        public void DeleteVersion_Execute_InvalidParams()
        {
            //------------Setup for test--------------------------
            var DeleteVersion = new DeleteVersion();
            var serializer = new Dev2JsonSerializer();
            var ws = new Mock<IWorkspace>();
            //------------Execute Test---------------------------
            var ax = DeleteVersion.Execute(new Dictionary<string, StringBuilder>(), ws.Object);

            //------------Assert Results-------------------------
            var des = serializer.Deserialize<ExecuteMessage>(ax);
            Assert.AreEqual(des.HasError, true);
        }
        public void DeleteVersion_Execute_Valid_ExpectServerCalled()
        {
            //------------Setup for test--------------------------
            var DeleteVersion = new DeleteVersion();
            var serializer = new Dev2JsonSerializer();
            var ws = new Mock<IWorkspace>();
            var server = new Mock<IServerVersionRepository>();
            var res = Guid.NewGuid();
            //------------Execute Test---------------------------
            DeleteVersion.ServerVersionRepo = server.Object;
            var ax = DeleteVersion.Execute(new Dictionary<string, StringBuilder> { { "resourceId", new StringBuilder(res.ToString()) }, { "versionNumber", new StringBuilder("1") } }, ws.Object);

            //------------Assert Results-------------------------
            serializer.Deserialize<ExecuteMessage>(ax);
            server.Verify(a => a.DeleteVersion(res, "1"));
        }