File tree Expand file tree Collapse file tree 1 file changed +0
-37
lines changed
RandomData2/UnitTest/Database Expand file tree Collapse file tree 1 file changed +0
-37
lines changed Original file line number Diff line number Diff line change @@ -84,43 +84,6 @@ public void Products()
8484 CollectionAssert . AreEqual ( expected . Select ( x => x . Name ) . ToArray ( ) , actual . Select ( x => x . Name ) . ToArray ( ) ) ;
8585 }
8686
87- [ TestMethod ]
88- public void Data ( )
89- {
90- InsertData ( ) ;
91- GetData ( ) ;
92- }
93-
94- static void InsertData ( )
95- {
96- using ( var db = new RandomTestDb ( ) )
97- {
98- for ( int i = 0 ; i < 20 ; i ++ )
99- {
100- var id = RandomData . GenerateOrderedGuid2 ( ) ;
101- var idSql = RandomData . GenerateOrderedSqlGuid2 ( ) ;
102- var name = RandomData . GenerateAlphanumerics ( 20 ) ;
103-
104- db . Categories . Add ( new Category
105- {
106- Id = id . Guid . ToString ( ) ,
107- Created = id . DateTime ,
108- Name = name ,
109- } ) ;
110- db . Products . Add ( new Product
111- {
112- Id = idSql . Guid ,
113- Created = idSql . DateTime ,
114- Name = name ,
115- } ) ;
116-
117- System . Threading . Thread . Sleep ( 1 ) ;
118- }
119-
120- db . SaveChanges ( ) ;
121- }
122- }
123-
12487 static void GetData ( )
12588 {
12689 using ( var db = new RandomTestDb ( ) )
You can’t perform that action at this time.
0 commit comments