@@ -14,7 +14,7 @@ It uses fluent page object pattern.
14
14
15
15
* The package targets .NET Standard 2.0, which supports .NET 5+, .NET Framework 4.6.1+ and .NET Core/Standard 2.0+.*
16
16
17
- - ** [ What's new in v2.0 .0] ( https://atata.io/blog/2022/05/11 /atata-2.0 .0-released/ ) **
17
+ - ** [ What's new in v2.1 .0] ( https://atata.io/blog/2022/07/20 /atata-2.1 .0-released/ ) **
18
18
- ** [ Migrating to Atata v2] ( https://atata.io/tutorials/migrating-to-atata-v2/ ) **
19
19
20
20
## Features
@@ -96,28 +96,25 @@ Sample test:
96
96
97
97
``` C#
98
98
[Test ]
99
- public void User_Create ()
99
+ public void Create ()
100
100
{
101
- string firstName , lastName , email ;
102
- Office office = Office .NewYork ;
103
- Gender gender = Gender .Male ;
104
-
105
101
Login ()
106
102
.New ()
107
- .ModalTitle .Should .Equal (" New User" )
108
- .General .FirstName .SetRandom (out firstName )
109
- .General .LastName .SetRandom (out lastName )
110
- .General .Email .SetRandom (out email )
111
- .General .Office .Set ( office )
112
- .General .Gender .Set ( gender )
103
+ .ModalTitle .Should .Be (" New User" )
104
+ .General .FirstName .SetRandom (out string firstName )
105
+ .General .LastName .SetRandom (out string lastName )
106
+ .General .Email .SetRandom (out string email )
107
+ .General .Office .SetRandom ( out Office office )
108
+ .General .Gender .SetRandom ( out Gender gender )
113
109
.Save ()
114
- .Users .Rows [x => x .FirstName == firstName && x .LastName == lastName && x .Email == email && x .Office == office ].View ()
115
- .Header .Should .Equal ($" {firstName } {lastName }" )
116
- .Email .Should .Equal (email )
117
- .Office .Should .Equal (office )
118
- .Gender .Should .Equal (gender )
119
- .Birthday .Should .Not .Exist ()
120
- .Notes .Should .Not .Exist ();
110
+ .GetUserRow (email ).View ()
111
+ .AggregateAssert (x => x
112
+ .Header .Should .Be ($" {firstName } {lastName }" )
113
+ .Email .Should .Be (email )
114
+ .Office .Should .Be (office )
115
+ .Gender .Should .Be (gender )
116
+ .Birthday .Should .Not .Exist ()
117
+ .Notes .Should .Not .Exist ());
121
118
}
122
119
```
123
120
0 commit comments