Skip to content

Commit

Permalink
First cut at 2.0 alpha!
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremydmiller committed Jan 26, 2024
1 parent 2101dca commit 62e8fd0
Show file tree
Hide file tree
Showing 146 changed files with 278 additions and 10,210 deletions.
2 changes: 1 addition & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<TargetFrameworks>net6.0;net7.0;net8.0</TargetFrameworks>
<NoWarn>1570;1571;1572;1573;1574;1587;1591;1701;1702;1711;1735;0618</NoWarn>
<ImplicitUsings>true</ImplicitUsings>
<Version>1.16.0</Version>
<Version>2.0.0-alpha.1</Version>
<RepositoryUrl>$(PackageProjectUrl)</RepositoryUrl>
<PublishRepositoryUrl>true</PublishRepositoryUrl>
<EmbedUntrackedSources>true</EmbedUntrackedSources>
Expand Down
47 changes: 24 additions & 23 deletions src/Http/Wolverine.Http.Tests/Marten/compiled_query_writer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -65,30 +65,31 @@ public async Task endpoint_returning_compiled_primitive_query_should_return_quer
int.TryParse(invoiceCountString, out var result).ShouldBeTrue();
result.ShouldBe(invoicesCount);
}

[Fact]
public async Task endpoint_returning_compiled_primitive_query_should_return_query_result_for_string()
{
await using var session = Store.LightweightSession();
int invoicesCount = 5;
Guid id = Guid.Empty;
for (int i = 0; i < invoicesCount; i++)
{
var invoice =
new Invoice()
{
};
session.Store(invoice);
id = invoice.Id;
}
id.ShouldNotBe(Guid.Empty);

await session.SaveChangesAsync();

var invoiceId = await Host.GetAsText($"/invoices/compiled/string/{id}");
invoiceId.ShouldNotBeNull();
invoiceId.ShouldBe(id.ToString());
}
// TODO -- come back to this soon.
// [Fact]
// public async Task endpoint_returning_compiled_primitive_query_should_return_query_result_for_string()
// {
// await using var session = Store.LightweightSession();
// int invoicesCount = 5;
// Guid id = Guid.Empty;
// for (int i = 0; i < invoicesCount; i++)
// {
// var invoice =
// new Invoice()
// {
// };
// session.Store(invoice);
// id = invoice.Id;
// }
// id.ShouldNotBe(Guid.Empty);
//
// await session.SaveChangesAsync();
//
// var invoiceId = await Host.GetAsText($"/invoices/compiled/string/{id}");
// invoiceId.ShouldNotBeNull();
// invoiceId.ShouldBe(id.ToString());
// }

[Fact]
public async Task endpoint_returning_compiled_query_should_return_query_result()
Expand Down
Loading

0 comments on commit 62e8fd0

Please sign in to comment.