//[DotMemoryUnit(FailIfRunWithoutSupport = false)] public async Task Response_ShouldReturnCorrectValue() { var request = new TestAsyncRequest(Guid.NewGuid()); var response = await mediator.GetAsync(request); response.ResponseToRequestId.ShouldBe(request.Id); //dotMemory.Check(memory => //{ // memory.GetObjects(where => where.Type.Is<TestRequestAsyncEngine>()).ObjectsCount.ShouldBe(0); //}); }
//[DotMemoryUnit(FailIfRunWithoutSupport = false)] public async Task Response_ShouldBeCorrectType() { var request = new TestAsyncRequest(Guid.NewGuid()); var response = await mediator.GetAsync(request); response.ShouldBeOfType(typeof(TestResponse)); //dotMemory.Check(memory => //{ // memory.GetObjects(where => where.Type.Is<TestRequestAsyncEngine>())?.ObjectsCount.ShouldBe(0); //}); }