How can we help you today? How can we help you today?
Geovanny_Hernandez
Hi @David Atkinson Thanks for asking, I have read this project of Ed Elliot, it looks very interesting, however, the approach that I presented in my session was focus into a "progressive" way of solving some problems and improving Visual Studio Unit Testing projects, in the second demo I I demonstrated how you can use tSQLt inside VS, but keeping the use of Unit Test classes from VS, how can I did that? Basically deploying tSQLt framework inside your target Unit Test DB, in my demo for instance, I used the function  tSQLt.FakeTable inside my class ( I can't not past the image directly here, let me to send you by email). In my last demo, I presented a personal project which consisted in an extension of existing C# class that you can use and develop Unit Test with the advantage that you can copy/paste the results directly of SSMS and organize into your assert section, something like:  [TestMethod]        public void usp_CheckingDataInsertedIntoProcessMetricSegmentIsOk()        {             RunTest(Actions.CreateBlock(@"             --Initial load with valid values for the PlayerMetricSegment which is the base value            --for calculating the new range of dates              EXEC tSQLt.FakeTable 'dbo.ProcessMetricSegment';                        --Act            EXEC [dbo].[usp_SetProcessBySegment]                @range_start =1 ,                @range_end =3 ,                @initial_date ='20190101',                @segmentid = 1                        --Assert            --DataSet 1             SELECT RangeValue,ProjectedDate             FROM ProcessMetricSegment;                         ")          .ResultsetShouldBe(1, @1 2019-01-02                                  2 2019-01-03                                  3 2019-01-04));        } This project is in Github:  https://github.com/geohernandez/SQLBits2019 If you have any doubt or simply you want to talk more about it, please, you can send me an email and we can schedule a chat, I always be available for RedGate people :-) / comments
Hi @David Atkinson Thanks for asking, I have read this project of Ed Elliot, it looks very interesting, however, the approach that I presented in my session was focus into a "progressive" way of so...
0 votes
I agree this is a great benefit Roseanna, I have completed two amazing courses of Paul Randall and thinking to continue with one of Erin Stellato. / comments
I agree this is a great benefit Roseanna, I have completed two amazing courses of Paul Randall and thinking to continue with one of Erin Stellato.
0 votes