private static void CustomCollectionDecodeTest2_Run(IDbContext context, ref Expr lastQuery) { var model = new SupportedCustomCollectionModel2 { CustomCollection = new SupportedCustomCollection <DateTime>(new [] { DateTime.MinValue.ToUniversalTime(), DateTime.MaxValue.ToUniversalTime() }), DatesArray = new [] { DateTime.MinValue, DateTime.MaxValue } }; var result = context.Get <SupportedCustomCollectionModel2>("asd").Result; Assert.Equal(model, result); }
protected bool Equals(SupportedCustomCollectionModel2 other) { return(string.Equals(Id, other.Id) && (CustomCollection?.SequenceEqual(other.CustomCollection) ?? other.CustomCollection == null)); }