public async Task Should_resolve_schemas_by_id() { var schema = SetupSchema(0, false); A.CallTo(() => index.GetIdsAsync()) .Returns(new List <Guid> { schema.Id }); var actual = await sut.GetSchemasAsync(appId.Id); Assert.Same(actual[0], schema); }
public async Task Should_resolve_schemas_by_id() { var(schema, _) = SetupSchema(); A.CallTo(() => cache.GetSchemaIdsAsync()) .Returns(new List <DomainId> { schema.Id }); var actual = await sut.GetSchemasAsync(appId.Id); Assert.Same(actual[0], schema); }