public void GivenBorrowWhenBorrowConfirmThenProductBorrowed() { User borrower = new User("Test"); User lender = new User("Test1"); Product product = new Product(lender, "Test", "Test", new ProductType(), new Term(DateTime.Now.AddDays(-6), DateTime.Now)); Borrow borrow = new Borrow(borrower, product, new Term(DateTime.Now.AddDays(-2), DateTime.Now.AddDays(-1))); product.Status.Should().Be(ProductStatus.Shary); borrow.Status.Should().Be(BorrowStatus.Created); borrow.IsLender(lender).Should().BeTrue(); borrow.IsBorrower(borrower).Should().BeTrue(); borrow.Confirm(); product.Status.Should().Be(ProductStatus.Borrowed); borrow.Status.Should().Be(BorrowStatus.Accepted); }