Exemplo 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);
        }
Exemplo 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();
 }