Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [Fact]
- [ResetDatabase]
- public async Task ShouldEditEmployee()
- {
- var employee = new Employee
- {
- Email = "jane@jane.com",
- FirstName = "Jane",
- LastName = "Smith",
- Title = "Director",
- Office = Office.Austin,
- PhoneNumber = "512-555-4321",
- Username = "janesmith",
- HashedPassword = "1234567890"
- };
- await _fixture.ExecuteDbContextAsync(async dbContext =>
- {
- dbContext.Employees.Add(employee);
- await dbContext.SaveChangesAsync();
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement