public void Post_WhenCalled_AddsItem() { // Act _ = controller.AddIssue(new ClientIssue()); // Assert var issues = controller.GetIssues().Result; var items = Assert.IsType <List <ClientIssue> >(issues.Value); Assert.Equal(3, items.Count); }
public void Post_WhenCalled_AddsItem() { // Act _ = controller.AddIssue(new ClientIssue()); // Assert var issues = controller.GetIssues().Result; var items = Assert.IsType <List <ClientIssue> >(issues.Value); Assert.Equal(3, items.Count); }