Esempio n. 1
0
        public void GetCustomerId()
        {
            _db = new MockDbBuilder()
                  .WithCustomer(CUSTOMER)
                  .Build();
            _service = new CustomerTransactionLogService(_db.Object, _mapper);

            _service.GetCustomerId(IDENT_USER_ID).Should().Be(CUSTOMER_ID);
        }
Esempio n. 2
0
 public void GetCustomerId_NotFound()
 {
     _service = new CustomerTransactionLogService(_db.Object, _mapper);
     _service.GetCustomerId(Guid.Empty).Should().NotHaveValue();
     _service.GetCustomerId(Guid.NewGuid()).Should().NotHaveValue();
 }