public void When_EmployeeTryReturnDeviceThatDoesNotExists_then_EmployeeCantReturnsDevice() { Device anyDevice = AnyDevice(); SimCard freeSimCard = SimCard.Free(_anySimId); Employee employee = Employee.With(_anyEmployeeId, new List <SimCard> { freeSimCard }); ReturnedDevice result = employee.Return(anyDevice); Assert.That(employee.HasFreeSimCard(), Is.True); Assert.That(result, Is.Null); }
private SimCard NewSimCard() => SimCard.Free(_anySimId);