public void GetCustomerId() { _db = new MockDbBuilder() .WithCustomer(CUSTOMER) .Build(); _service = new CustomerTransactionLogService(_db.Object, _mapper); _service.GetCustomerId(IDENT_USER_ID).Should().Be(CUSTOMER_ID); }
public void GetCustomerId_NotFound() { _service = new CustomerTransactionLogService(_db.Object, _mapper); _service.GetCustomerId(Guid.Empty).Should().NotHaveValue(); _service.GetCustomerId(Guid.NewGuid()).Should().NotHaveValue(); }