Skip to content

Fail on execute Test #261

@GitMeLyK

Description

@GitMeLyK

Hello, i have a question to replicate this test.

       Infrastructure.Linq.Processors -> void TrackUnseenEntities()
       Infrastructure.Linq.Processors -> void  RefreshEntityIfMarkedAsNoChanges()

How come these two tests fail with "System.ArgumentException : Type is already registered as a BsonClassMap" if I start each test individually. I tried debugging I noticed that the entity map can not locate the primary key given by the id. But the thing that leaves me a bit like this, is that if I start the whole set of tests of this class they are successful. ?!?. If the same tests are run after running in order before the DontRefreshEntityIfMarkedForUpdate() tests Unseen... and Refresh... works correctly, but what changes? There is something that makes you get the right context in Tracking first?.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions