Exemplo n.º 1
0
        public void Empty()
        {
            // ARRANGE
            var exchangeId = new ExchangeId();

            // ACT, ASSERT
            exchangeId.Should().Be(ExchangeId.Empty);
        }
Exemplo n.º 2
0
        public void DifferentWhen()
        {
            // ARRANGE
            var a = new ExchangeId(new DateTimeOffset(2000, 1, 1, 0, 0, 0, TimeSpan.Zero), new Guid("F7E38533-F06B-407C-B26D-DC8EE9E961D4"));
            var b = new ExchangeId(new DateTimeOffset(2000, 2, 2, 0, 0, 0, TimeSpan.Zero), new Guid("F7E38533-F06B-407C-B26D-DC8EE9E961D4"));

            // ACT, ASSERT
            a.Should().NotBe(b);
        }
Exemplo n.º 3
0
        public void DifferentUnique()
        {
            // ARRANGE
            var a = new ExchangeId(new DateTimeOffset(2000, 1, 1, 0, 0, 0, TimeSpan.Zero), new Guid("F7E38533-F06B-407C-B26D-DC8EE9E961D4"));
            var b = new ExchangeId(new DateTimeOffset(2000, 1, 1, 0, 0, 0, TimeSpan.Zero), new Guid("BA6F0E9D-38CE-4119-B74F-2E8315B322C7"));

            // ACT, ASSERT
            a.Should().NotBe(b);
        }