in Education by
Our software manages a lot of data feeds from various sources: real time replicated databases, files FTPed automatically, scheduled running of database stored procedures to cache snapshots of data from linked servers and numerous other methods of acquiring data. We need to verify and validate this data: has an import even happened is the data reasonable (null values, number of rows, etc.) does the data reconcile with other values (perhaps we have multiple sources for similar data) is it out of data and the import needs manually prompting In many ways this is like Unit Testing: there are many types of check to make, just add a new check to the list and just re-run each class of test in response to a particular event. There are already nice GUIs for running tests, perhaps even being able to schedule them. Is this a good approach? Are there better, similarly generalised, patterns for data validation? We're a .NET shop, would Windows Workflow (WF) be a better more flexible solution? JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)

1 Answer

0 votes
by
Unit testing is not analogous to what you need to do. Its more along the lines of integration testing or acceptance testing. But that's beside the point. Your system has a heavy requirement for validation of data coming into the system. Data comes into the system by various means, and I would assume it needs to be verified in different ways. Workflow is good for designing and controlling business processes (logic) that are apt to change or require human intervention. It is agnostic when it comes to the subject of validation. However, hosting your validation process as a workflow may be a good idea, as workflows are designed to be flexible, long living and capable of human intervention. Hosting your validation process within a workflow state machine framework would allow you to define validation strategies for different types of data import at runtime. You need to design a validation framework that relies heavily on composition over inheritance for its logic. Break apart all the different ways that data can be imported into the system and validated into atomic steps. Group those steps by responsibility and create interfaces with the barest, most minimum properties and methods required for an implementing object to perform each. Create base classes that are composed of these different interfaces. From this framework you can mix and match implementations that suit the particular import or validation step. One last thing. Workflows are serialized to xaml for long term storage. Your classes should be xaml serializable as well to make the transition from activity to repository and back again as smooth and simple as possible.

Related questions

0 votes
    I've just started writing unit tests for a legacy code module with large physical dependencies using the ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 25, 2022 in Education by JackTerrance
0 votes
    I've just started writing unit tests for a legacy code module with large physical dependencies using the ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 24, 2022 in Education by JackTerrance
0 votes
    Has anyone got any suggestions for unit testing a Managed Application Add-In for Office? I'm using NUnit but I had the ... .NET object that I want to test (all set under condition...
asked Mar 17, 2022 in Education by JackTerrance
0 votes
    Has anyone got any suggestions for unit testing a Managed Application Add-In for Office? I'm using NUnit ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 17, 2022 in Education by JackTerrance
0 votes
    As it currently stands, this question is not a good fit for our Q&A format. We expect answers to ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 12, 2022 in Education by JackTerrance
0 votes
    I want to test my Entities that are built using Entity Framework. My concern is that using Entity Framework ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 11, 2022 in Education by JackTerrance
0 votes
    Closed. This question is opinion-based. It is not currently accepting answers. Want to improve this question ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 5, 2022 in Education by JackTerrance
0 votes
    Closed. This question is opinion-based. It is not currently accepting answers. Want to improve this question ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 5, 2022 in Education by JackTerrance
0 votes
    I have a C library compiled with MinGW, Eclipse C project. Library consists of many modules, each module ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Feb 26, 2022 in Education by JackTerrance
0 votes
    I'm using restful routing module for asp.net mvc and very happy with it. But I can't get one ... , JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Feb 13, 2022 in Education by JackTerrance
0 votes
    _______ is the smallest unit of data in a computer ? 1. Gigabyte 2. Bit 3. Byte 4. Terabyte...
asked Jul 14, 2022 in Education by JackTerrance
0 votes
    main memory unit of a computer: a)stores bulk of data and instruction b)stores small amount of data and ... of all other unit Select the correct answer from above options...
asked Dec 22, 2021 in Education by JackTerrance
0 votes
    Which unit is responsible for converting the data received from the user into computer understandable format? Select the correct answer from above options...
asked Dec 10, 2021 in Education by JackTerrance
0 votes
    Which name is assigned to a protocol data unit in different layers in tcp/ip stack? Select the correct answer from above options...
asked Dec 1, 2021 in Education by JackTerrance
0 votes
    ___________ Unit or device is a device through which we enter data and instructions to computer. Select the correct answer from above options...
asked Nov 29, 2021 in Education by JackTerrance
...