Newer
Older
TestingWithoutInterfaces / tests / UnitTests / ApplicationCore / Extensions / TestChild.cs
@Derek Comartin Derek Comartin on 5 Dec 2022 458 bytes Init
using System;
using System.Diagnostics;
using System.Diagnostics.CodeAnalysis;

namespace Microsoft.eShopWeb.UnitTests.ApplicationCore.Extensions;

[DebuggerDisplay("Id={Id}, Date={Date}")]
public class TestChild : IEquatable<TestChild>
{
    public Guid Id { get; set; } = Guid.NewGuid();

    public DateTime Date { get; set; } = DateTime.UtcNow;

    public bool Equals([AllowNull] TestChild other) =>
        other?.Date == Date && other?.Id == Id;
}