public async Task DeleteAsync_WhenIdDoesntExist_ShouldPerformCorrectly( SqlConnectionFactory sqlConnectionFactory) { // Arrange var sut = new GoalCommand2(sqlConnectionFactory); var goalId = new Guid("74e2948a-0000-0000-0000-2cbed39ae27f"); // Act var result = await sut.DeleteAsync(goalId); // Asserts result.Should().BeFalse(); }
public async Task DeleteAsync_ShouldPerformCorrectly( SqlConnectionFactory sqlConnectionFactory) { // Arrange var sut = new GoalCommand2(sqlConnectionFactory); var goalId = new Guid("fee01c19-8cf4-431d-b233-d1238c6966c2"); // Act var result = await sut.DeleteAsync(goalId); // Asserts result.Should().BeTrue(); }