Advertisement
Guest User

Untitled

a guest
Oct 24th, 2016
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. [Fact]
  2. [ResetDatabase]
  3. public async Task ShouldEditEmployee()
  4. {
  5. var employee = new Employee
  6. {
  7. Email = "jane@jane.com",
  8. FirstName = "Jane",
  9. LastName = "Smith",
  10. Title = "Director",
  11. Office = Office.Austin,
  12. PhoneNumber = "512-555-4321",
  13. Username = "janesmith",
  14. HashedPassword = "1234567890"
  15. };
  16.  
  17. await _fixture.ExecuteDbContextAsync(async dbContext =>
  18. {
  19. dbContext.Employees.Add(employee);
  20. await dbContext.SaveChangesAsync();
  21. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement